Anjan, configureAndWatch() method is expecting a path to a file. It does not support urls, as far as I know.
I have proposed a set of extensions based on the configureAndWatch() functionality. The extensions attempt to allow more flexibility and options to specify a source for a "watchdog" that will reconfigure log4j when the source changes. Currently it supports file, url, and socket. If you have time, I would be interested to know if it solves your issue as well. You can find the related posting in the mail archives: http://marc.theaimsgroup.com/?l=log4j-user&m=101656353725142&w=2 thanks, -Mark > -----Original Message----- > From: Anjan Bacchu [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 30, 2002 11:48 AM > To: Log4J Users List > Subject: passing an URL to configureAndWatch ? > > > Hi All, > > Thanks to all Log4j implementors. > > Is there a way I can call > PropertyConfigurator.configureAndWatch() without > passing a file name ? > > Actually, I have a web app which is in the form of a > WAR file and the > Property file in in the > WEB-INF\classes directory. How do I get the name of the file ? > It would be useful if I could pass an URL (URL = > ClassLoader.getResource("debug.ini") ) ? > > Thank you, > > Best Regards, > ANJAN. B > > > -- > 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]>