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

LevelRangeFilter default range has to be OFF->ALL

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.4, 2.4.1, 2.5, 2.6, 2.6.1, 2.6.2
    • Fix Version/s: None
    • Component/s: Filters
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated: