 | FallbackGroupTargetWriteAsyncThreadSafe Method (AsyncLogEventInfo) |
Writes a log event 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.Wrappers
Assembly:
NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntaxprotected override void WriteAsyncThreadSafe(
AsyncLogEventInfo logEvent
)
Protected Overrides Sub WriteAsyncThreadSafe (
logEvent As AsyncLogEventInfo
)
Dim logEvent As AsyncLogEventInfo
Me.WriteAsyncThreadSafe(logEvent)
abstract WriteAsyncThreadSafe :
logEvent : AsyncLogEventInfo -> unit
override WriteAsyncThreadSafe :
logEvent : AsyncLogEventInfo -> unit
Parameters
- logEvent
- Type: NLog.CommonAsyncLogEventInfo
Log event to be written out.
See Also