bwoester opened a new pull request #594: URL: https://github.com/apache/logging-log4j2/pull/594
This fixes an issue in the rolling file appender. The increment counter in the filePattern didn't work if the filenames contained regex characters. In our case it was the '+' character introduced by the timezone in a timestamp (app-20211029T123000+0200.%i.log), that caused filenames to be missed by the `getEligibleFiles` method. The fix quotes the parts of the filenames that are not meant to be treated as regex. I think this is the actual cause for JIRA ticket https://issues.apache.org/jira/browse/LOG4J2-3168 not the compression mentioned in the ticket. The first commit in this PR has to be reverted before merging, I kept it for now in case there's more work to be done on the PR. Please let me know what you think. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
