log4net SDK Reference

BufferingAppenderSkeleton.BufferSize Property

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

[Visual Basic]
Public Property BufferSize As Integer
[C#]
public int BufferSize {get; set;}

Property Value

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

BufferingAppenderSkeleton Class | log4net.Appender Namespace