RollingFileAppender StaticLogFileName Property | Apache log4net™ SDK Documentation

Gets or sets a value indicating whether to always log to the same file.

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

C#
VB
C++
F#
Copy

    public bool StaticLogFileName { get; set; }

    Public Property StaticLogFileName As Boolean
    	Get
    	Set

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

    member StaticLogFileName : bool with get, set

#### Property Value

Type: Boolean
true if always should be logged to the same file, otherwise false.
Remarks

By default file.log is always the current file. Optionally file.log.yyyy-mm-dd for current formatted datePattern can by the currently logging file (or file.log.curSizeRollBackup or even file.log.yyyy-mm-dd.curSizeRollBackup).

This will make time based rollovers with a large number of backups much faster as the appender it won't have to rename all the backups!

See Also

#### Reference

RollingFileAppender Class
log4net.Appender Namespace