SyntaxFix
Write A Post
Hire A Developer
Questions
RollingFileAppender does this. You just need to set maxBackupIndex to the highest value for the backup file.
RollingFileAppender
maxBackupIndex