Click or drag to resize

LimitingTargetWrapperWrite Method (AsyncLogEventInfo)

Writes log event to the wrapped target if the current MessagesWrittenCount is lower than MessageLimit. If the MessageLimit is already reached, no log event will be written to the wrapped target. MessagesWrittenCount resets when the current Interval is expired.

Namespace:  NLog.Targets.Wrappers
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
protected override void Write(
	AsyncLogEventInfo logEvent
)

Parameters

logEvent
Type: NLog.CommonAsyncLogEventInfo
Log event to be written out.
See Also