ColoredConsoleAppender Constructor (ILayout, Boolean)Apache log4net™ SDK Documentation
Initializes a new instance of the ColoredConsoleAppender class with the specified layout.

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

[ObsoleteAttribute("Instead use the default constructor and set the Layout & Target properties")]
public ColoredConsoleAppender(
	ILayout layout,
	bool writeToErrorStream
)

Parameters

layout
Type: log4net.Layout ILayout
the layout to use for this appender
writeToErrorStream
Type: OnlineSystem Boolean
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