 | FileTargetWrite Method (IListAsyncLogEventInfo) |
Writes the specified array of logging events to a file specified in the FileName
parameter.
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntaxprotected override void Write(
IList<AsyncLogEventInfo> logEvents
)
Protected Overrides Sub Write (
logEvents As IList(Of AsyncLogEventInfo)
)
Dim logEvents As IList(Of AsyncLogEventInfo)
Me.Write(logEvents)
abstract Write :
logEvents : IList<AsyncLogEventInfo> -> unit
override Write :
logEvents : IList<AsyncLogEventInfo> -> unit
Parameters
- logEvents
- Type: System.Collections.GenericIListAsyncLogEventInfo
An array of AsyncLogEventInfo objects.
Remarks
This function makes use of the fact that the events are batched by sorting
the requests by filename. This optimizes the number of open/close calls
and can help improve performance.
See Also