logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Jaton <benjamin.ja...@gmail.com>
Subject how to reinitialize log4j2 configuration?
Date Fri, 05 Jun 2015 23:33:49 GMT

After an initial configuration of log4j2 with:

    Configurator.initialize(null, configLocation);

I would like to reinitialize it with a different URL

    Configurator.initialize(null, configLocation2);

The problem is that the second call is ignored. I believe that once the
LoggerContext is STARTED it will ignore reconfigurations.

Is there a way to do this?


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