Log4j 2
  1. Log4j 2
  2. LOG4J2-75

Allow configuration to be setup per webapp. Allow automatic reconfiguration to work properly.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-alpha2
    • Fix Version/s: 2.0-beta1
    • Component/s: Core
    • Labels:
      None

      Description

      The ContextListener needs to be enhanced to accept a configuration location. Reconfiguration needs to work for a configuration supplied that way.

        Activity

        Ralph Goers created issue -
        Hide
        Ralph Goers added a comment -

        Renamed ContextListener to Log4jContextListener.
        Added a Reconfigurable interface and then had XMLConfiguration and JSONConfiguration implement that.
        Modified FileConfigurationMonitor to accept the Reconfigurable and call its reconfigure method when required.
        Modified ConfigurationListener to accept a Reconfigurable in the onChange method.
        Moved call to monitor.CheckConfiguration from LoggerConfig to Logger since the call in LoggerConfig caused a deadlock (the LoggerConfig will be replaced during reconfiguration).
        Discovered that ResolverUtil could not locate plugins within a war in JBoss. Added support to allow that.

        Show
        Ralph Goers added a comment - Renamed ContextListener to Log4jContextListener. Added a Reconfigurable interface and then had XMLConfiguration and JSONConfiguration implement that. Modified FileConfigurationMonitor to accept the Reconfigurable and call its reconfigure method when required. Modified ConfigurationListener to accept a Reconfigurable in the onChange method. Moved call to monitor.CheckConfiguration from LoggerConfig to Logger since the call in LoggerConfig caused a deadlock (the LoggerConfig will be replaced during reconfiguration). Discovered that ResolverUtil could not locate plugins within a war in JBoss. Added support to allow that.
        Ralph Goers made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Ralph Goers [ ralph.goers@dslextreme.com ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Ralph Goers
            Reporter:
            Ralph Goers
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development