General J2EE: Log4j configuration change listener
Log4j supports file watch for configuration changes. I would like to be able to get notification when log4j reconfiguration takes place. It there kind of listener in log4j, that will be notified on any log4j configuration change?
- Posted by: Maciej Miklas
- Posted on: December 11 2008 06:58 EST
Hello, Have you already try calling org.apache.log4j.xml.DOMConfigurator.configureAndWatch("log4j.configuration") (http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/DOMConfigurator.html) Hope that helps! Xavier