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

Note: This API is now obsolete.

Construct a new appender using the layout, file and append mode.

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, File & AppendToFile properties")]
    public FileAppender(
    	ILayout layout,
    	string filename,
    	bool append
    )

    <ObsoleteAttribute("Instead use the default constructor and set the Layout, File & AppendToFile properties")>
    Public Sub New (
    	layout As ILayout,
    	filename As String,
    	append As Boolean
    )

    public:
    [ObsoleteAttribute(L"Instead use the default constructor and set the Layout, File & AppendToFile properties")]
    FileAppender(
    	ILayout^ layout,
    	String^ filename,
    	bool append
    )

    [<ObsoleteAttribute("Instead use the default constructor and set the Layout, File & AppendToFile properties")>]
    new :
            layout : ILayout *
            filename : string *
            append : bool -> FileAppender

#### Parameters

layout
  Type: log4net.Layout
  ILayout
  the layout to use with this appender
filename
  Type: System
  String
  the full path to the file to write to
append
  Type: System
  Boolean
  flag to indicate if the file should be appended to

Remarks

Obsolete constructor.

See Also

#### Reference

FileAppender Class
FileAppender Overload
log4net.Appender Namespace