Let's say you had two methods, one of them called configureAndWatch like: public void doConfigureAndWatch(String configFile) { PropertyConfigurator.configureAndWatch(configFile, 1000); } and one of them called the configure method like: public void doConfigure(String configFile) { PropertyConfigurator.configure(configFile); } If you made a call to the doConfigureAndWatch method, I do believe that it would keep checking the config file, even if you made a call to the doConfigure method afterwards. The reason why is because the configureAndWatch method actually creates a thread that checks the config file. I believe that if you call the configure method after the configureAndWatch method, the thread that was created by the configureAndWatch method is still alive.
In my experience, I've only done one or the other. -----Original Message----- From: Charlie Cano [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 12:23 PM To: Log4J Users List Subject: RE: Turning of conf file watching But does calling PropertyConfigurator.configure("myConfFile") override the previous call, thereby turning off the watch? -----Original Message----- From: Sara Prigge [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 10:20 AM To: 'Log4J Users List' Subject: RE: Turning of conf file watching You could use the configure method like: PropertyConfigurator.configure("myConfFile"); I believe that will just load your config file. It will not check to see if it's been updated. I'm not aware of being able to somehow "turn off" the configureAndWatch method. -----Original Message----- From: Charlie Cano [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 12:13 PM To: [EMAIL PROTECTED] Subject: Turning of conf file watching Hey all, Quick question: If I initialize a PropertyConfigurator with PropertyConfigurator.configureAndWatch("myConfFile", 1000); is there anyway I can turn that watch off? The API doc is not clear on this issue. I basically want the ability to, at some future point, programmatically stop checking the configuration file and auto-loading the configuration. Is this possible? Thanks in advance, Charlie -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>