C# 클래스 Catel.Logging.BatchLogListenerBase

Base class for log listeners that can write in batches.
상속: LogListenerBase, IBatchLogListener
파일 보기 프로젝트 열기: Catel/Catel

공개 메소드들

메소드 설명
BatchLogListenerBase ( int maxBatchCount = 100 ) : System

Initializes a new instance of the BatchLogListenerBase class.

Flush ( ) : Task

Flushes the current queue asynchronous.

보호된 메소드들

메소드 설명
Write ( ILog log, string message, LogEvent logEvent, object extraData, LogData logData, System.DateTime time ) : void

Called when any message is written to the log.

WriteBatchAsync ( List batchEntries ) : Task

Writes the batch of entries.

비공개 메소드들

메소드 설명
OnTimerTick ( object state ) : void
WriteBatch ( List batchEntries ) : Task

메소드 상세

BatchLogListenerBase() 공개 메소드

Initializes a new instance of the BatchLogListenerBase class.
public BatchLogListenerBase ( int maxBatchCount = 100 ) : System
maxBatchCount int The maximum batch count.
리턴 System

Flush() 공개 메소드

Flushes the current queue asynchronous.
public Flush ( ) : Task
리턴 Task

Write() 보호된 메소드

Called when any message is written to the log.
protected Write ( ILog log, string message, LogEvent logEvent, object extraData, LogData logData, System.DateTime time ) : void
log ILog The log.
message string The message.
logEvent LogEvent The log event.
extraData object The additional data.
logData LogData The log data.
time System.DateTime The time.
리턴 void

WriteBatchAsync() 보호된 메소드

Writes the batch of entries.
protected WriteBatchAsync ( List batchEntries ) : Task
batchEntries List The batch entries.
리턴 Task