log4net SDK Reference |

# ColoredConsoleAppender 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 ColoredConsoleAppender class with the specified layout.

[Visual Basic]
Overloads Public Sub New( _
ByVal layout As ILayout, _
ByVal writeToErrorStream As Boolean _
)
[C#]
public ColoredConsoleAppender(
ILayout layout,
bool writeToErrorStream
);

#### 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

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