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

Category.setLevel should accept null value

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.14.1
    • Fix Version/s: 3.0.0, 2.15.0
    • Component/s: log4j 1.2 emulation
    • Labels:
      None

      Description

      In log4j 1.2, the setLevel method of the Category class can accept a null value, in which case the Category will revert to inheriting the level from the hierarchy.

      In log4j2's emulation, however, Category.setLevel(null) will result in a NullPointerException

        Attachments

          Activity

            People

            • Assignee:
              ggregory Gary D. Gregory
              Reporter:
              kennymacleod.atl Kenny MacLeod
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: