Using RollingFileAppender with log4net, I am looking for a way to format the numbering of the files. Indeed, I would like to sort them and currently the alphabetical sorting is not in the reversed order of creation. For 12 log files I have :
- logfile.txt
- logfile.txt.1
- logfile.txt.10
- logfile.txt.11
- logfile.txt.2
- logfile.txt.3
- logfile.txt.4
- logfile.txt.5
- logfile.txt.6
- logfile.txt.7
- logfile.txt.8
- logfile.txt.9
Is there a way to specify a format "000", when rolling file ? (or any other way to have a alphabetical sorting inline with the produced order?)