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

Expose Log4jContextFactory's ShutdownCallbackRegistry

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2, 2.3
    • 2.4
    • Plugins
    • None

    Description

      Currently the instance created by org.apache.logging.log4j.core.impl.Log4jContextFactory#createShutdownCallbackRegistry in the default constructor for Log4jContextFactory is not acquirable without resorting to reflection. As such, any class which implements ShutdownCallbackRegistry is not able to get the actual instance of itself and must resort to either reflection or static methods to properly shutdown in an arbitrary lifecycle workflow.

      This ask is to better clarify how a custom implementation of ShutdownCallbackRegistry can get its instance.

      Attachments

        Activity

          People

            Unassigned Unassigned
            drcrallen Charles R Allen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: