Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3389

Log42j: Provide the capability to Rollover all appenders in an application on Shutdown

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.17.1
    • None
    • Appenders, Configuration
    • 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

          Activity

            People

              rgoers Ralph Goers
              brianantao Brian Antao
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: