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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to