The log files generated have the following names : myabc-2016-11-21.0.gz, myabc-2016-11-21.1.gz, myabc-2016-11-21.2.gz etc.
The problem is if a log file has extension (%i) more than 3 digits, it is not being deleted after 30 days (maxHistory). For example, myabc-2016-11-21.0.gz gets deleted after 30 days, but myabc-2016-11-21.1000.gz is NOT getting deleted.
Is there any other appender/configuration which I need to add to the logback configuration file to make sure files with more than 3 digit extension also gets deleted or is it a bug in logback?
I know that total number of log files generated can be controlled by setting the property "totalSizeCap" and that way I can avoid generating more than 999 files per day. But that is not the answer I am looking for. Also, I have tried with logback 1.1.7, but that did not help.
Since for us this issue has been raised by the customer, for the sake of urgency, I have posted this question in stack overflow as well. To avoid duplicity, I can delete the other thread if needed.
Your help will be highly appreciated.
Thanks,
Arnab