add a context listener that automatically configures JMX
--------------------------------------------------------

                 Key: LBCLASSIC-114
                 URL: http://jira.qos.ch/browse/LBCLASSIC-114
             Project: logback-classic
          Issue Type: New Feature
          Components: Other
            Reporter: Philippe Marschall
            Assignee: Logback dev list
            Priority: Minor


Setting up logback JMX for a web application requires a bit too many manual 
steps. It is not enough to simply add <jmxConfigurator /> to the configuration 
file. You should also set the context path but often you can't know that in 
advance. In addition you still need to write custom code to [prevent memory 
leaks|http://logback.qos.ch/manual/jmxConfig.html#leak]. These issues could all 
be addressed by a custom context listener. 

  <listener>
    
<listener-class>ch.qos.logback.classic.selector.servlet.JmxEnabler</listener-class>
  </listener>

Code attached.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
logback-dev mailing list
logback-dev@qos.ch
http://qos.ch/mailman/listinfo/logback-dev

Reply via email to