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

Category.setLevel should accept null value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.14.1
    • 3.0.0, 2.15.0
    • Log4j 1.2 bridge
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: