Gets or sets the maximum number of backup files that are kept before the oldest is erased.
The maximum number of backup files that are kept before the oldest is erased.
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.
RollingFileAppender Class | log4net.Appender Namespace