TextWriterAppender Writer Property | Apache log4net™ SDK Documentation

Sets the TextWriter where the log output will go.

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

C#
VB
C++
F#
Copy

    public virtual TextWriter Writer { get; set; }

    Public Overridable Property Writer As TextWriter
    	Get
    	Set

    public:
    virtual property TextWriter^ Writer {
    	TextWriter^ get ();
    	void set (TextWriter^ value);
    }

    abstract Writer : TextWriter with get, set
    override Writer : TextWriter with get, set

#### Property Value

Type: TextWriter
Remarks

The specified TextWriter must be open and writable.

The TextWriter will be closed when the appender instance is closed.

Note: Logging to an unopened TextWriter will fail.

See Also

#### Reference

TextWriterAppender Class
log4net.Appender Namespace