RollingFileAppenderStaticLogFileName 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: 4.0

public bool StaticLogFileName { get; set; }

Property Value

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

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