2It would be good if the filenamePattern for a RollingFileAppender would allow to zero pad the counter. Either automatically based on the max number of the counter or manually by giving the number of characters to pad to or even both approaches.
For example the current sitution is this:
The files I get will be:
This is very ugly in file listings. Therefore I propose two things:
1. Automatic padding based on the "max" parameter to the RolloverStrategy. If the max parameter has two digits (as in 15) it should automatically zero-pad the counter to be two digits as well.
2. Manual padding based on the filepattern pattern to the RollingFileAppender. At the moment it is possible to specify this as "%05i", but this does no zero-padding as expected, but instead pads with whitespaces. It should be possible to use zero-padding here too.