Use the configureAndWatch() method instead of configure() when configuring
log4j.

This allows you to specify an interval at which log4j will re-read the
configuration file.  Works a treat.

-----Original Message-----
From: Sajid Shaikh [mailto:[EMAIL PROTECTED]]
Sent: 20 August 2001 07:41
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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

Reply via email to