AppenderSkeleton DoAppend Method ( LoggingEvent ) | Apache log4net™ SDK Documentation

Performs threshold checks and invokes filters before delegating actual logging to the subclasses specific [M:Append(LoggingEvent[])] method.

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

C#
VB
C++
F#
Copy

    public void DoAppend(
    	LoggingEvent[] loggingEvents
    )

    Public Sub DoAppend (
    	loggingEvents As LoggingEvent()
    )

    public:
    virtual void DoAppend(
    	array<LoggingEvent^>^ loggingEvents
    ) sealed

    abstract DoAppend :
            loggingEvents : LoggingEvent[] -> unit
    override DoAppend :
            loggingEvents : LoggingEvent[] -> unit

#### Parameters

loggingEvents
  Type:
  log4net.Core
  LoggingEvent
  The array of events to log.

#### Implements

IBulkAppender
DoAppend(
LoggingEvent
)
Remarks

This method cannot be overridden by derived classes. A derived class should override the [M:Append(LoggingEvent[])] method which is called by this method.

The implementation of this method is as follows:

- Checks that the severity of the loggingEvents is greater than or equal to the Threshold of this appender.
- Checks that the IFilter chain accepts the loggingEvents.
- Calls [M:PreAppendCheck()] and checks that it returns true.

If all of the above steps succeed then the loggingEvents will be passed to the [M:Append(LoggingEvent[])] method.

See Also

#### Reference

AppenderSkeleton Class
DoAppend Overload
log4net.Appender Namespace