You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by bu...@apache.org on 2003/11/03 12:34:44 UTC
DO NOT REPLY [Bug 17531] -
PropertyConfigurator.configureAndWatch() don't reset the configuration
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17531>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17531
PropertyConfigurator.configureAndWatch() don't reset the configuration
------- Additional Comments From tumblin.dice@stones.com 2003-11-03 11:34 -------
Thanx! Was just about to submit the exact same change.
Altough there is an abbreviation availabel:
public void doOnChange() {
LogManager.resetConfiguration();
new PropertyConfigurator().doConfigure(filename,
LogManager.getLoggerRepository());
}
The same improvement also applies to the DOMConfigurator.
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org