Log4j configuration change listener

Discussions

General J2EE: Log4j configuration change listener

  1. Log4j configuration change listener (1 messages)

    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?
  2. 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