AppenderSkeleton PreAppendCheck Method | Apache log4net™ SDK Documentation

Called before [M:Append(LoggingEvent)] as a precondition.

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

C#
VB
C++
F#
Copy

    protected virtual bool PreAppendCheck()

    Protected Overridable Function PreAppendCheck As Boolean

    protected:
    virtual bool PreAppendCheck()

    abstract PreAppendCheck : unit -> bool
    override PreAppendCheck : unit -> bool

#### Return Value

Type: Boolean
true if the call to [M:Append(LoggingEvent)] should proceed.
Remarks

This method is called by [M:DoAppend(LoggingEvent)] before the call to the abstract [M:Append(LoggingEvent)] method.

This method can be overridden in a subclass to extend the checks made before the event is passed to the [M:Append(LoggingEvent)] method.

A subclass should ensure that they delegate this call to this base class if it is overridden.

See Also

#### Reference

AppenderSkeleton Class
log4net.Appender Namespace