Click or drag to resize

LimitingTargetWrapper Constructor (Target, Int32, TimeSpan)

Initializes a new instance of the LimitingTargetWrapper class.

Namespace:  NLog.Targets.Wrappers
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public LimitingTargetWrapper(
	Target wrappedTarget,
	int messageLimit,
	TimeSpan interval
)

Parameters

wrappedTarget
Type: NLog.TargetsTarget
The wrapped target.
messageLimit
Type: SystemInt32
Maximum number of messages written per interval.
interval
Type: SystemTimeSpan
Interval in which the maximum number of messages can be written.
See Also