Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

TextWriterAppender�Constructor�(ILayout, TextWriter)

NOTE: This constructor is now obsolete.

Instead use the default constructor and set the Layout & Writer properties


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

[Visual�Basic]
Overloads�Public�Sub�New( _
���ByVal layout�As�ILayout,�_
���ByVal writer�As�TextWriter�_
)
[C#]
public�TextWriterAppender(
���ILayoutlayout,
���TextWriterwriter
);

Parameters

layout
The layout to use with this appender
writer
The TextWriter to output to

Remarks

The TextWriter must have been previously opened.

Obsolete constructor.

See Also

TextWriterAppender Class | log4net.Appender Namespace | TextWriterAppender Constructor Overload List