logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Kemp" <mattk...@gmail.com>
Subject Re: Forcing XML configuration file to reset Log4J configuration
Date Tue, 13 Nov 2007 22:10:42 GMT
To reset an entire configuration you need something like this:

public void reloadLog4J() {
    LogManager.resetConfiguration();
    DOMConfigurator.configure("log4j.xml");
}

Unfortunately, even the DOMConfigurator.configureAndWatch() only does an
incremental reload.


Matt


On Nov 13, 2007 3:58 PM, Paul Duffy <paduffy@cisco.com> wrote:

> Folks,
>
> Been bit by the incremental nature of XML configuration application.  Is
> there any way to not apply a changed XML configuration incrementally,
> but instead force full reset to reflect the state of the configuration
> file?
>
> Cheers
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message