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

Expose Log4jContextFactory's ShutdownCallbackRegistry

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2, 2.3
    • Fix Version/s: 2.4
    • Component/s: Plugins
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              drcrallen Charles R Allen

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment