You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Claus Wagner <Cl...@ascom.ch> on 2001/08/20 09:54:03 UTC

Re: How to change the type of logging without restarting the application

Sajid Shaikh wrote:
> 
> Is there a way to change the type of logging without restarting the
> application. We are using a property file to specify the categories and
> priorities when the application starts. If we change this property file is
> there a way that log4j will automatically pick up the new property settings
> without restarting the application ?
> 
> Thanks for help in advance.
> Sajid.

Sajid:

PropertyConfigurator.configureAndWatch(...) does the trick.

Cheers
Claus

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org