C# Класс ALFA.Shared.Logger

This class encapsulates a deferred log that is safe to use even in a context where scripts cannot directly invoke server script APIs. It is periodically polled by the ACR_ServerCommunicator in order to flush the deferred log contents to the server log.
Показать файл Открыть проект

Открытые методы

Метод Описание
FlushLogMessages ( CLRScriptBase Script ) : void

Flush any buffered log messages to the server main log file. N.B. The current time is used as the log message time stamp. It is assumed that the caller invokes the FlushLogMessages() function sufficiently often that the time stamp is "close enough" to meet.

Log ( string Format ) : void

Write a deferred log message to the log.

Описание методов

FlushLogMessages() публичный статический Метод

Flush any buffered log messages to the server main log file. N.B. The current time is used as the log message time stamp. It is assumed that the caller invokes the FlushLogMessages() function sufficiently often that the time stamp is "close enough" to meet.
public static FlushLogMessages ( CLRScriptBase Script ) : void
Script CLRScriptFramework.CLRScriptBase Supplies the CLR script object.
Результат void

Log() публичный статический Метод

Write a deferred log message to the log.
public static Log ( string Format ) : void
Format string Supplies the String.Format format string. ///
Результат void