Set a system property with the config filename and call DOMConfigurator.configureAndWatch with the value of that system property.
On 8/22/07, Joshua Blake <[EMAIL PROTECTED]> wrote: > I searched the archives & docs for this question, thinking it must > have come up before, but didn't find anything. If this has come up > before, please be so kind as to send me a link to the previous > posting/document. Thank you! > > I want to configure Log4J using XML, and without specifying the > config filename in my code. I also want to be able to watch the > config file for changes and reload dynamically. I can do the former > using the system property "log4j.configuration", which works great. > However, that method doesn't appear to watch & reload the config file > when its been changed. Is there a way to do this without manually > calling DOMConfigurator.configureAndWatch(filename)? > > Thanks! > > - Josh > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- James A. N. Stauffer http://www.geocities.com/stauffer_james/ Are you good? Take the test at http://www.livingwaters.com/good/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
