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

Inaccuracy in the 'Additivity' section of the 'Configuration' web page

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Documentation
    • None

    Description

      https://logging.apache.org/log4j/2.0/manual/configuration.html In the "Additivity" section, there's a code example to demonstrate how duplicate log lines are added when an appender is referenced in both root and child logger configs. 

      The example incorrectly points out that only the TRACE logs are duplicated, when in reality both ERROR and TRACE logs from 'com.foo.Bar' are duplicated. Both the prose and sample output are incorrect. It's confusing for readers who think they understand additivity (e.g. "why would the author go out of their way to point out only the TRACE logs are duplicated?")

      Attachments

        Activity

          People

            Unassigned Unassigned
            guerarda Adrien Guerard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: