TextWriterAppender PrepareWriter Method | Apache log4net™ SDK Documentation

Called to allow a subclass to lazily initialize the writer

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

C#
VB
C++
F#
Copy

    protected virtual void PrepareWriter()

    Protected Overridable Sub PrepareWriter

    protected:
    virtual void PrepareWriter()

    abstract PrepareWriter : unit -> unit
    override PrepareWriter : unit -> unit

Remarks

This method is called when an event is logged and the Writer or QuietWriter have not been set. This allows a subclass to attempt to initialize the writer multiple times.

See Also

#### Reference

TextWriterAppender Class
log4net.Appender Namespace