<PackageReference Include="NLog" Version="6.2.0" />

NLog.Targets.Wrappers.BufferingTargetWrapper

A target that buffers log events and sends them in batches to the wrapped target.
public Layout<int> BufferSize { get; set; }

Gets or sets the number of log events to be buffered.

public Layout<int> FlushTimeout { get; set; }

Gets or sets the timeout (in milliseconds) after which the contents of buffer will be flushed if there's no write in the specified period of time. Use -1 to disable timed flushes.

Gets or sets the action to take if the buffer overflows.

public bool SlidingTimeout { get; set; }

Gets or sets a value indicating whether to use sliding timeout.

Initializes a new instance of the BufferingTargetWrapper class.

public BufferingTargetWrapper(string name, Target wrappedTarget)

Initializes a new instance of the BufferingTargetWrapper class.

public BufferingTargetWrapper(Target wrappedTarget)

Initializes a new instance of the BufferingTargetWrapper class.

public BufferingTargetWrapper(Target wrappedTarget, int bufferSize)

Initializes a new instance of the BufferingTargetWrapper class.

public BufferingTargetWrapper(Target wrappedTarget, int bufferSize, int flushTimeout)

Initializes a new instance of the BufferingTargetWrapper class.

public BufferingTargetWrapper(Target wrappedTarget, int bufferSize, int flushTimeout, BufferingTargetWrapperOverflowAction overflowAction)

Initializes a new instance of the BufferingTargetWrapper class.