Set the maximum number of backup files to retain. If this is set to zero, the log file will be truncated when it reaches the MaxSize. Backup files are called FileName.1, FileName.2 etc. This value can't be negative. The default is 1 backup file.
RollingFileAppender Class | EnterpriseDT.Util.Debug Namespace