TextWriterAppender PreAppendCheck Method | Apache log4net™ SDK Documentation

This method determines if there is a sense in attempting to append.

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

C#
VB
C++
F#
Copy

    protected override bool PreAppendCheck()

    Protected Overrides Function PreAppendCheck As Boolean

    protected:
    virtual bool PreAppendCheck() override

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

#### Return Value

Type: Boolean
false if any of the preconditions fail.
Remarks

This method checks if an output target has been set and if a layout has been set.

See Also

#### Reference

TextWriterAppender Class
log4net.Appender Namespace