CyclicBuffer Class | Apache log4net™ SDK Documentation

A fixed size rolling buffer of logging events.
Inheritance Hierarchy

System
Object
log4net.Util
CyclicBuffer

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

C#
VB
C++
F#
Copy

    public class CyclicBuffer

    Public Class CyclicBuffer

    public ref class CyclicBuffer

    type CyclicBuffer =  class end

The CyclicBuffer type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| CyclicBuffer | Constructor

Top
Properties

| Name | Description
--- | --- | ---
| Item | Gets the ith oldest event currently in the buffer.
| Length | Gets the number of logging events in the buffer.
| MaxSize | Gets the maximum size of the buffer.

Top
Methods

| Name | Description
--- | --- | ---
| Append | Appends a loggingEvent to the buffer.
| Clear | Clear the buffer
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.)
| PopAll | Pops all the logging events from the buffer into an array.
| PopOldest | Get and remove the oldest event in the buffer.
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Remarks

An array backed fixed size leaky bucket.

See Also

#### Reference

log4net.Util Namespace