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

wrong documentation for logging with Level.OFF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.14.1
    • 2.15.0
    • Documentation
    • None

    Description

      The documentation states that log events of level OFF should never be logged, whereas level ALL should always be logged.
      See the last table in section "LoggerConfig" here: https://logging.apache.org/log4j/2.0/manual/architecture.html

      In fact the opposite is the case.
      The following statement in combination with the default configuration leads to a log entry.

      LogManager.getLogger().log(Level.OFF, "test");

      Attachments

        Activity

          People

            Unassigned Unassigned
            gson Georg Sonnefeld
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: