TextWriterAppender Constructor (ILayout, TextWriter) | Apache log4net™ SDK Documentation

Note: This API is now obsolete.

Initializes a new instance of the TextWriterAppender class and sets the output destination to the specified StreamWriter.

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

C#
VB
C++
F#
Copy

    [ObsoleteAttribute("Instead use the default constructor and set the Layout & Writer properties")]
    public TextWriterAppender(
    	ILayout layout,
    	TextWriter writer
    )

    <ObsoleteAttribute("Instead use the default constructor and set the Layout & Writer properties")>
    Public Sub New (
    	layout As ILayout,
    	writer As TextWriter
    )

    public:
    [ObsoleteAttribute(L"Instead use the default constructor and set the Layout & Writer properties")]
    TextWriterAppender(
    	ILayout^ layout,
    	TextWriter^ writer
    )

    [<ObsoleteAttribute("Instead use the default constructor and set the Layout & Writer properties")>]
    new :
            layout : ILayout *
            writer : TextWriter -> TextWriterAppender

#### Parameters

layout
  Type: log4net.Layout
  ILayout
  The layout to use with this appender
writer
  Type: System.IO
  TextWriter
  The TextWriter to output to

Remarks

The TextWriter must have been previously opened.
Remarks

Obsolete constructor.

See Also

#### Reference

TextWriterAppender Class
TextWriterAppender Overload
log4net.Appender Namespace