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

NPE in JULLogger.getLevel()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.17.2
    • 2.19.0
    • Log4j-to-JUL
    • None

    Description

      JULLogger.getLevel() fails with a NullPointerException if the JUL root logger has a null level. This is a common situation in JDK 8+, since LogManager$RootLogger does not set the log level any more in its constructor.

      A practical example where it fails is Tomcat's ClassLoaderLogManager: cf. BZ 66184.

      Attachments

        Activity

          People

            Unassigned Unassigned
            pkarwasz Piotr Karwasz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: