C# Class Catel.Logging.BatchLogListenerBase

Base class for log listeners that can write in batches.
Inheritance: LogListenerBase, IBatchLogListener
Afficher le fichier Open project: Catel/Catel

Méthodes publiques

Méthode Description
BatchLogListenerBase ( int maxBatchCount = 100 ) : System

Initializes a new instance of the BatchLogListenerBase class.

Flush ( ) : Task

Flushes the current queue asynchronous.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
OnTimerTick ( object state ) : void
WriteBatch ( List batchEntries ) : Task

Method Details

BatchLogListenerBase() public méthode

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

Flush() public méthode

Flushes the current queue asynchronous.
public Flush ( ) : Task
Résultat Task

Write() protected méthode

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.
Résultat void

WriteBatchAsync() protected méthode

Writes the batch of entries.
protected WriteBatchAsync ( List batchEntries ) : Task
batchEntries List The batch entries.
Résultat Task