Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.17.1
-
None
-
All, provide the feature as an implementation that can be defined in the Log4j2 Configuration
-
Important
Description
I have seen many issues raised in StackOverflow for different variations of findingĀ a good solution to rolling over of all appenders in an application on Shutdown. But no clear and best solution emerges.
Hence raising this issue which we in our organisation also haveĀ a great and urgent Need for.
What we need is:
A Rollover strategy that we can include in all appenders in the Log4j2 Configuration, in the Appender definition to properly rollover the associated log files on Shutdown.
The full rollover functionality needs to be defined fully in the Configuration only and no need for Java Code to be written to call the LogManager.Shutdown() method.
This feature would be a tremendous boost particularly managing log files associated with multiple pods in Kubernetes deployed applications.
Attachments
Issue Links
- duplicates
-
LOG4J2-2800 Option to flush and rollover active log files on shutdown
- Open
-
LOG4J2-1426 Log Rotation or rollover on every server shutdown in log4j2
- Closed