Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1954

Configurations with multiple root loggers should fail loudly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8
    • Fix Version/s: 2.9.0
    • Component/s: Configurators
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        remkop@yahoo.com Remko Popma added a comment -

        Something like this modification in LoggersPlugin:

        Show
        remkop@yahoo.com Remko Popma added a comment - Something like this modification in LoggersPlugin :
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 10ad73fbce5b10df4b94986f9058164bf291cbc9 in logging-log4j2's branch refs/heads/master from rpopma
        [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=10ad73f ]

        LOG4J2-1954 Configurations with multiple root loggers now fail loudly.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 10ad73fbce5b10df4b94986f9058164bf291cbc9 in logging-log4j2's branch refs/heads/master from rpopma [ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=10ad73f ] LOG4J2-1954 Configurations with multiple root loggers now fail loudly.
        Hide
        remkop@yahoo.com Remko Popma added a comment -

        Fixed in master.

        Show
        remkop@yahoo.com Remko Popma added a comment - Fixed in master.

          People

          • Assignee:
            remkop@yahoo.com Remko Popma
            Reporter:
            remkop@yahoo.com Remko Popma
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development