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 Sajid Shaikh <ss...@mahinetworks.com> on 2001/08/20 08:40:36 UTC

How to change the type of logging without restarting the applica tion

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.

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


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

Posted by Claus Wagner <Cl...@ascom.ch>.
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