Summary: | DOMConfigurator.configureAndWatch does not perform an initial config | ||
---|---|---|---|
Product: | Log4j - Now in Jira | Reporter: | John Cahill <john_cahill> |
Component: | Configurator | Assignee: | log4j-dev <log4j-dev> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 1.2 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP |
Description
John Cahill
2005-02-10 21:33:37 UTC
The DOMConfigurator delegates configuration to XMLWatchdog, which will only perform the first configuration upon detecting a file change. XMLWatchdog.doOnChange() calls DOMConfigurator.doConfigure(String,LoggerRepository); Also: In the base class of XMLWatchdog, FileWatchdog does attempt to perform a first configuration of the indicated file (via checkAndConfigure()), but in my tests, this first configuration fails because FileWatchdog seems not to be able to deal with resources that exist on the classpath (via fileExists, line 68, since FileWatchdog is depending on a java.io.File reference). At any rate, DOMConfigurator.configureAndWatch() does not perform an initial config, and possibly not even a watch Changed bug summary. Added unit test in rev 568763. DOMConfigurator.configureAndWatch does appear to perform an initial configuration. Perhaps fixed sometime in the interim. |