Gets or sets the maximum number of backup files that are kept before
the oldest is erased.
Namespace: log4net.AppenderAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Property Value
Type: Int32The 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