Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.13.1
-
None
-
None
-
- log4j 2.13.1
- macOS 10.13.6
- Java 11.0.2
Description
Even if only programatically, it would be useful to have a way of ensuring all async loggers are flushed and the active log files are rolled over to their final names when using RollingFileAppender.
The OnStartupTriggeringPolicy does the renaming of the active file on restart, but this doesn't cover the cases of instance termination where there is no subsequent restart. In our case this leads to the active files never being visible to daemon processes responsible for log shipping (which ignore the active filenames).
Attachments
Issue Links
- duplicates
-
LOG4J2-1426 Log Rotation or rollover on every server shutdown in log4j2
- Closed
- is duplicated by
-
LOG4J2-3389 Log42j: Provide the capability to Rollover all appenders in an application on Shutdown
- Open