BufferingAppenderSkeleton BufferSize Property | Apache log4net™ SDK Documentation

Gets or sets the size of the cyclic buffer used to hold the logging events.

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public int BufferSize { get; set; }

    Public Property BufferSize As Integer
    	Get
    	Set

    public:
    property int BufferSize {
    	int get ();
    	void set (int value);
    }

    member BufferSize : int with get, set

#### Property Value

Type: Int32
The size of the cyclic buffer used to hold the logging events.
Remarks

The BufferSize option takes a positive integer representing the maximum number of logging events to collect in a cyclic buffer. When the BufferSize is reached, oldest events are deleted as new events are added to the buffer. By default the size of the cyclic buffer is 512 events.

If the BufferSize is set to a value less than or equal to 1 then no buffering will occur. The logging event will be delivered synchronously (depending on the Lossy and Evaluator properties). Otherwise the event will be buffered.

See Also

#### Reference

BufferingAppenderSkeleton Class
log4net.Appender Namespace