Свойство | Type | Description | |
---|---|---|---|
ProcessPendingEvents | void |
Méthode | Description | |
---|---|---|
AsyncTargetWrapper ( ) : System |
Initializes a new instance of the AsyncTargetWrapper class.
|
|
AsyncTargetWrapper ( NLog.Target wrappedTarget ) : System |
Initializes a new instance of the AsyncTargetWrapper class.
|
|
AsyncTargetWrapper ( NLog.Target wrappedTarget, int queueLimit, AsyncTargetWrapperOverflowAction overflowAction ) : System |
Initializes a new instance of the AsyncTargetWrapper class.
|
Méthode | Description | |
---|---|---|
CloseTarget ( ) : void |
Shuts down the lazy writer timer.
|
|
FlushAsync ( AsyncContinuation asyncContinuation ) : void |
Waits for the lazy writer thread to finish writing messages.
|
|
InitializeTarget ( ) : void |
Initializes the target by starting the lazy writer timer.
|
|
StartLazyWriterTimer ( ) : void |
Starts the lazy writer thread which periodically writes queued log messages.
|
|
StopLazyWriterThread ( ) : void |
Starts the lazy writer thread.
|
|
Write ( AsyncLogEventInfo logEvent ) : void |
Adds the log event to asynchronous queue to be processed by the lazy writer thread. The Target.PrecalculateVolatileLayouts is called to ensure that the log event can be processed in another thread. |
Méthode | Description | |
---|---|---|
ProcessPendingEvents ( object state ) : void |
public AsyncTargetWrapper ( NLog.Target wrappedTarget ) : System | ||
wrappedTarget | NLog.Target | The wrapped target. |
Résultat | System |
public AsyncTargetWrapper ( NLog.Target wrappedTarget, int queueLimit, AsyncTargetWrapperOverflowAction overflowAction ) : System | ||
wrappedTarget | NLog.Target | The wrapped target. |
queueLimit | int | Maximum number of requests in the queue. |
overflowAction | AsyncTargetWrapperOverflowAction | The action to be taken when the queue overflows. |
Résultat | System |
protected FlushAsync ( AsyncContinuation asyncContinuation ) : void | ||
asyncContinuation | AsyncContinuation | The asynchronous continuation. |
Résultat | void |
protected Write ( AsyncLogEventInfo logEvent ) : void | ||
logEvent | AsyncLogEventInfo | The log event. |
Résultat | void |