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.
파일 보기 프로젝트 열기: ALandFarAway/ALFA-Base-Resources

공개 메소드들

메소드 설명
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