Hrvoje Ban created LOG4J2-3167:
----------------------------------
Summary: Delete action ignored when rolling empty file
Key: LOG4J2-3167
URL: https://issues.apache.org/jira/browse/LOG4J2-3167
Project: Log4j 2
Issue Type: Bug
Affects Versions: 2.14.1
Reporter: Hrvoje Ban
When rollover is triggered on a empty log file, it will delete that file (as
expected), but it will not execute delete actions for other older log files.
This is problematic for me because I'm required to always remove log files
after some time. I'm using combination of {{CronTriggeringPolicy}} and
{{Delete+IfLastModified}}, which works as expected, unless current log file is
empty. Since some logs are written infrequently, this can cause old files to
linger on disk for days.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)