Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

RollingFileAppender.MaxSizeRollBackups Property

Gets or sets the maximum number of backup files that are kept before the oldest is erased.

[Visual�Basic]
Public�Property�MaxSizeRollBackups�As�Integer
[C#]
public�int�MaxSizeRollBackups�{get;�set;}

Property Value

The maximum number of backup files that are kept before the oldest is erased.

Remarks

If set to zero, then there will be no backup files and the log file will be truncated when it reaches MaxFileSize.

If a negative number is supplied then no deletions will be made. Note that this could result in very slow performance as a large number of files are rolled over unless CountDirection is used.

The maximum applies to each time based group of files and not the total.

See Also

RollingFileAppender Class | log4net.Appender Namespace