CyclicBuffer ClassApache log4net™ SDK Documentation
A fixed size rolling buffer of logging events.
Inheritance Hierarchy

SystemObject
  log4net.UtilCyclicBuffer

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

public class CyclicBuffer

The CyclicBuffer type exposes the following members.

Constructors

  NameDescription
Public methodCyclicBuffer
Constructor
Top
Properties

  NameDescription
Public propertyItem
Gets the ith oldest event currently in the buffer.
Public propertyLength
Gets the number of logging events in the buffer.
Public propertyMaxSize
Gets the maximum size of the buffer.
Top
Methods

  NameDescription
Public methodAppend
Appends a loggingEvent to the buffer.
Public methodClear
Clear the buffer
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPopAll
Pops all the logging events from the buffer into an array.
Public methodPopOldest
Get and remove the oldest event in the buffer.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Remarks

An array backed fixed size leaky bucket.

See Also

Reference