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

LevelRangeFilter default range has to be OFF->ALL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.4, 2.4.1, 2.5, 2.6, 2.6.1, 2.6.2
    • None
    • Filters
    • None
    • Windows 10, Java 1.7

    Description

      Currently the default range is ERROR->ERROR.
      That is: if no minValue provided, it is considered ERROR.

      Default range should be OFF->ALL for few reasons:
      1) According to log4j 1.2, default range is full range.
      https://logging.apache.org/log4j/extras/apidocs/org/apache/log4j/filter/LevelRangeFilter.html
      So it's good for back compatibility.
      2) Current range is too limited.

      Attachments

        Activity

          People

            Unassigned Unassigned
            andreyp1986 Andrey Plotkin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: