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: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
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