CyclicBuffer Append Method | Apache log4net™ SDK Documentation

Appends a loggingEvent to 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 Append(
    	LoggingEvent loggingEvent
    )

    Public Function Append (
    	loggingEvent As LoggingEvent
    ) As LoggingEvent

    public:
    LoggingEvent^ Append(
    	LoggingEvent^ loggingEvent
    )

    member Append :
            loggingEvent : LoggingEvent -> LoggingEvent

#### Parameters

loggingEvent
  Type: log4net.Core
  LoggingEvent
  The event to append to the buffer.

#### Return Value

Type: LoggingEvent
The event discarded from the buffer, if the buffer is full, otherwise null.
Remarks

Append an event to the buffer. If the buffer still contains free space then null is returned. If the buffer is full then an event will be dropped to make space for the new event, the event dropped is returned.

See Also

#### Reference

CyclicBuffer Class
log4net.Util Namespace