Click or drag to resize

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
Syntax
protected override void Write(
	IList<AsyncLogEventInfo> logEvents
)

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