| TargetWriteAsyncThreadSafe Method (IListAsyncLogEventInfo) |
Writes an array of logging events to the log target, in a thread safe manner.
Any override of this method has to provide their own synchronization mechanism.
!WARNING! Custom targets should only override this method if able to provide their
own synchronization mechanism.
Layout-objects are not guaranteed to be
thread-safe, so using them without a SyncRoot-object can be dangerous.
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax protected virtual void WriteAsyncThreadSafe(
IList<AsyncLogEventInfo> logEvents
)
Protected Overridable Sub WriteAsyncThreadSafe (
logEvents As IList(Of AsyncLogEventInfo)
)
Dim logEvents As IList(Of AsyncLogEventInfo)
Me.WriteAsyncThreadSafe(logEvents)
abstract WriteAsyncThreadSafe :
logEvents : IList<AsyncLogEventInfo> -> unit
override WriteAsyncThreadSafe :
logEvents : IList<AsyncLogEventInfo> -> unit
Parameters
- logEvents
- Type: System.Collections.GenericIListAsyncLogEventInfo
Logging events to be written out.
See Also