ConsoleAppender Constructor (ILayout, Boolean) | Apache log4net™ SDK Documentation

Note: This API is now obsolete.

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

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 & Target properties")]
    public ConsoleAppender(
    	ILayout layout,
    	bool writeToErrorStream
    )

    <ObsoleteAttribute("Instead use the default constructor and set the Layout & Target properties")>
    Public Sub New (
    	layout As ILayout,
    	writeToErrorStream As Boolean
    )

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

    [<ObsoleteAttribute("Instead use the default constructor and set the Layout & Target properties")>]
    new :
            layout : ILayout *
            writeToErrorStream : bool -> ConsoleAppender

#### Parameters

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

#### Reference

ConsoleAppender Class
ConsoleAppender Overload
log4net.Appender Namespace