You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "John Lussmyer (JIRA)" <ji...@apache.org> on 2018/08/14 17:36:00 UTC
[jira] [Created] (LOG4J2-2406) Make it easier to swtich log4j
configuration files
John Lussmyer created LOG4J2-2406:
-------------------------------------
Summary: Make it easier to swtich log4j configuration files
Key: LOG4J2-2406
URL: https://issues.apache.org/jira/browse/LOG4J2-2406
Project: Log4j 2
Issue Type: Improvement
Reporter: John Lussmyer
Our app needs to have log4j switch to a different xml configuration after application startup.
The code currently does:
((org.apache.logging.log4j.core.LoggerContext) LogManager.getContext(false)).reconfigure();
[~ralph.goers@dslextreme.com] suggested
That could certainly be added to the Configurator class as
Configurator.reconfigure();
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)