You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2019/06/18 04:03:00 UTC

[jira] [Resolved] (LOG4J2-2406) Make it easier to swtich log4j configuration files

     [ https://issues.apache.org/jira/browse/LOG4J2-2406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers resolved LOG4J2-2406.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 2.12.0

Methods have been added to Configurator. Please verify and close.

> 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
>            Assignee: Ralph Goers
>            Priority: Minor
>             Fix For: 2.12.0
>
>
> 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)