AppenderSkeletonDoAppend 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.6.0-.NET 4.0
Syntax

public void DoAppend(
	LoggingEvent loggingEvent
)

Parameters

loggingEvent
Type: log4net.CoreLoggingEvent
The event to log.

Implements

IAppenderDoAppend(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