Re: [D] Delete and roll configuration help [logging-log4j2 ]
ppkarwasz (via GitHub) <[email protected]> Wed, 18 Mar 2026 09:21:29 -0000
| Newsgroups | gmane.comp.jakarta.log4j.devel |
|---|---|
| Message-ID | <ghd-D_kwDOAKJSSM4AjwKO-c6da6084-2ae1-42c6-b4b9-8b31834f0066__37462.9382671387$1773825749$gmane$org@gitbox.apache.org> |
GitHub user ppkarwasz added a comment to the discussion: Delete and roll configuration help
Hi @Shawcs,
There are two problems in your `KafkaServerAppender`:
- There is no `%i` specifier in the file pattern (`${sys:kafka.logs.dir}/server.%d{yyyy-MM-dd:HH'h':mm'm'}.log`). This will cause rollovers triggered by the **size** of the file to simply override the previous one (or fail, while attempting to do it).
- Your regex for the delete action (`server.log.*`) does not match any of the archived files.
GitHub link: https://github.com/apache/logging-log4j2/discussions/4029#discussioncomment-16190063
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]