log4net SDK Reference |

# CyclicBuffer Constructor

Constructor

[Visual Basic]
Public Sub New( _
ByVal maxSize As Integer _
)
[C#]
public CyclicBuffer(
int maxSize
);

#### Parameters

maxSize
  The maximum number of logging events in the buffer.

#### Remarks

Initializes a new instance of the CyclicBuffer class with the specified maximum number of buffered logging events.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentOutOfRangeException | The maxSize argument is not a positive integer.

#### See Also

CyclicBuffer Class | log4net.Util Namespace