Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

ConsoleAppender�Constructor�(ILayout, Boolean)

NOTE: This constructor is now obsolete.

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


Initializes a new instance of the ConsoleAppender class with the specified layout.

[Visual�Basic]
Overloads�Public�Sub�New( _
���ByVal layout�As�ILayout,�_
���ByVal writeToErrorStream�As�Boolean�_
)
[C#]
public�ConsoleAppender(
���ILayoutlayout,
���boolwriteToErrorStream
);

Parameters

layout
the layout to use for this appender
writeToErrorStream
flag set to true to write to the console error stream

Remarks

When writeToErrorStream is set to true, output is written to the standard error output stream. Otherwise, output is written to the standard output stream.

See Also

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