You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "Remko Popma (JIRA)" <ji...@apache.org> on 2017/06/25 02:19:02 UTC
[jira] [Commented] (LOG4J2-1954) Configurations with multiple root
loggers should fail loudly
[ https://issues.apache.org/jira/browse/LOG4J2-1954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16062192#comment-16062192 ]
Remko Popma commented on LOG4J2-1954:
-------------------------------------
Something like this modification in {{LoggersPlugin}}:
!prevent-multiple-roots.png|thumbnail!
> Configurations with multiple root loggers should fail loudly
> ------------------------------------------------------------
>
> Key: LOG4J2-1954
> URL: https://issues.apache.org/jira/browse/LOG4J2-1954
> Project: Log4j 2
> Issue Type: Bug
> Components: Configurators
> Affects Versions: 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8
> Reporter: Remko Popma
> Attachments: prevent-multiple-roots.png
>
>
> Log4j2 currently accepts configurations with multiple <root> elements without errors or warnings. Based on multiple questions I've seen on StackOverflow, such configurations rarely work correctly.
> During initialization, Log4j2 should detect this problem and fail with an ERROR (or FATAL) message.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)