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

setLogger() with null throws exception in JULHelper

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.13
    • Fix Version/s: 1.1.0
    • Component/s: logback-classic
    • Labels:
      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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: