FileAppender AppendToFile Property | Apache log4net™ SDK Documentation

Gets or sets a flag that indicates whether the file should be appended to or overwritten.

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public bool AppendToFile { get; set; }

    Public Property AppendToFile As Boolean
    	Get
    	Set

    public:
    property bool AppendToFile {
    	bool get ();
    	void set (bool value);
    }

    member AppendToFile : bool with get, set

#### Property Value

Type: Boolean
Indicates whether the file should be appended to or overwritten.
Remarks

If the value is set to false then the file will be overwritten, if it is set to true then the file will be appended to.

The default value is true.
See Also

#### Reference

FileAppender Class
log4net.Appender Namespace