Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

RollingFileAppender.StaticLogFileName Property

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

[Visual�Basic]
Public�Property�StaticLogFileName�As�Boolean
[C#]
public�bool�StaticLogFileName�{get;�set;}

Property Value

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

RollingFileAppender Class | log4net.Appender Namespace