On Tue, 18 Feb 2003 10:49:38 +0100, Oscar Ruiz wrote:

>Hi all,
>
>is there any way of changing logging properties online?, i.e. without
>restarting the application?, and even more, can this be done remotely?
>
>I have a server with multiple java applications, each of them using its own
>logging properties file, when a problem ocurrs i need to change the
>properties file in order to enable debuging for the application causing the
>problems, but obviously restarting changes the whole state of the
>application, not helping to debug.

Use
"PropertyConfigurator.configureAndWatch("config/logging.properties");".
This makes log4j reread the properties file every minute, allowing you
to update the debug level online. 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to