CyclicBuffer PopOldest Method | Apache log4net™ SDK Documentation

Get and remove the oldest event in the buffer.

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

C#
VB
C++
F#
Copy

    public LoggingEvent PopOldest()

    Public Function PopOldest As LoggingEvent

    public:
    LoggingEvent^ PopOldest()

    member PopOldest : unit -> LoggingEvent

#### Return Value

Type: LoggingEvent
The oldest logging event in the buffer
Remarks

Gets the oldest (first) logging event in the buffer and removes it from the buffer.

See Also

#### Reference

CyclicBuffer Class
log4net.Util Namespace