logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javier Gonzalez" <jagon...@gmail.com>
Subject Re: Reload config file
Date Fri, 30 Jun 2006 13:16:47 GMT
Yes, you can. Be careful, though, that reloading, AFAIK, doesn't drop
the old configuration and load the new one, it loads the new config on
top of the old one. Which means that, if you configured an appender,
and then reload the file without that appender, said appender still
"exists" and is configured as per the old config.

(somebody please correct me if I'm wrong :)

On 6/30/06, Jitendra Kharche <Jitendra.Kharche@geometricsoftware.com> wrote:
> Can I reload the log4j configuration during runtime?
> I am using DOMConfigurator.configure(file-path) to load the log4j
> configuration when my app starts. If I change the log level and reload
> the configuration by calling DOMConfigurator.configure(file-path) again
> without shutting down the application, is it ok or there is another way
> of doing it?
> Regards,
> Jitendra

Javier González Nicolini

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

View raw message