You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/06/18 04:03:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16866206#comment-16866206 ]
ASF subversion and git services commented on LOG4J2-2406:
---------------------------------------------------------
Commit 262eec35269db75296e5b66f98874759575b66ef in logging-log4j2's branch refs/heads/release-2.x from Ralph Goers
[ https://gitbox.apache.org/repos/asf?p=logging-log4j2.git;h=262eec3 ]
LOG4J2-2406 - Add reconfiguration methods to Configurator
> 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
>
> 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)