EventLogAppender Constructor (ILayout) | Apache log4net™ SDK Documentation

Note: This API is now obsolete.

Initializes a new instance of the EventLogAppender class with the specified ILayout.

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 property")]
    public EventLogAppender(
    	ILayout layout
    )

    <ObsoleteAttribute("Instead use the default constructor and set the Layout property")>
    Public Sub New (
    	layout As ILayout
    )

    public:
    [ObsoleteAttribute(L"Instead use the default constructor and set the Layout property")]
    EventLogAppender(
    	ILayout^ layout
    )

    [<ObsoleteAttribute("Instead use the default constructor and set the Layout property")>]
    new :
            layout : ILayout -> EventLogAppender

#### Parameters

layout
  Type: log4net.Layout
  ILayout
  The ILayout to use with this appender.

Remarks

Obsolete constructor.

See Also

#### Reference

EventLogAppender Class
EventLogAppender Overload
log4net.Appender Namespace