You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Mark Douglas <Ma...@systemsunion.com> on 2001/08/20 09:51:59 UTC

RE: How to change the type of logging without restarting the app lica tion

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:sshaikh@mahinetworks.com]
Sent: 20 August 2001 07:41
To: 'log4j-dev@jakarta.apache.org'
Cc: 'log4j-user@jakarta.apache.org'
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: log4j-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-dev-help@jakarta.apache.org

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