Click or drag to resize

RoundRobinGroupTargetWrite Method (AsyncLogEventInfo)

Forwards the write to one of the targets from the NLog.Targets collection.

Namespace:  NLog.Targets.Wrappers
Assembly:  NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntax
protected override void Write(
	AsyncLogEventInfo logEvent
)

Parameters

logEvent
Type: NLog.CommonAsyncLogEventInfo
The log event.
Remarks
The writes are routed in a round-robin fashion. The first log event goes to the first target, the second one goes to the second target and so on looping to the first target when there are no more targets available. In general request N goes to Targets[N % Targets.Count].
See Also