| 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.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax protected 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