Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-906

setLogger() with null throws exception in JULHelper

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.1.0
    • 1.0.13
    • logback-classic
    • None

    Description

      I'm attempting to reset a logger back to it's default, inherited level by passing in null but it throws an exception in the jul.LevelChangePropagator:

          <!-- install a level change propagator - only needed for jul to logback -->
          <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator" />
      
      java.lang.NullPointerException
      	ch.qos.logback.classic.jul.JULHelper.asJULLevel(JULHelper.java:35)
      	ch.qos.logback.classic.jul.LevelChangePropagator.propagate(LevelChangePropagator.java:66)
      	ch.qos.logback.classic.jul.LevelChangePropagator.onLevelChange(LevelChangePropagator.java:57)
      	ch.qos.logback.classic.LoggerContext.fireOnLevelChange(LoggerContext.java:306)
      	ch.qos.logback.classic.Logger.setLevel(Logger.java:175)
      

      Attachments

        Activity

          People

            tony19 Tony Trinh
            jklap Jason Klapste
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: