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

PluginManager should be able to load plugins via SPI

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Information Provided
    • 2.6.2
    • None
    • Plugins
    • None

    Description

      I want to setup a custom configuration using a special factory class (based on https://logging.apache.org/log4j/2.x/manual/customconfig.html)
      As this will run in an Application server I don't have access to the system properties or to the main to call ConfigurationFactory.setConfigurationFactory
      Therefore I suggest to add an SPI loading mechanism for ConfigurationFactory as well. See https://docs.oracle.com/javase/tutorial/ext/basics/spi.html for details on SPI.
      Do you think this could work, or would this be a problem, if Tomcat itself is configured to use log4j? Maybe it can be done upon Servlet initialization as done in the log4j2-web project.

      Attachments

        Activity

          People

            Unassigned Unassigned
            phax Philip Helger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: