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 loggingEvent
    )

    Public Sub DoAppend (
    	loggingEvent As LoggingEvent
    )

    public:
    virtual void DoAppend(
    	LoggingEvent^ loggingEvent
    ) sealed

    abstract DoAppend :
            loggingEvent : LoggingEvent -> unit
    override DoAppend :
            loggingEvent : LoggingEvent -> unit

#### Parameters

loggingEvent
  Type: log4net.Core
  LoggingEvent
  The event to log.

#### Implements

IAppender
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 loggingEvent is greater than or equal to the Threshold of this appender.
- Checks that the IFilter chain accepts the loggingEvent.
- Calls [M:PreAppendCheck()] and checks that it returns true.

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

See Also

#### Reference

AppenderSkeleton Class
DoAppend Overload
log4net.Appender Namespace