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

Configurations with multiple root loggers should fail loudly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8
    • 2.9.0
    • Configurators
    • 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.

      Attachments

        1. prevent-multiple-roots.png
          28 kB
          Remko Popma

        Activity

          People

            rpopma Remko Popma
            rpopma Remko Popma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: