[logback-dev] [JIRA] Created: (LBCLASSIC-109) Logger allows TRACE messages when reset to DEBUG

Andrew Ruch (JIRA) noreply-jira at qos.ch
Tue Feb 24 16:04:47 CET 2009

Logger allows TRACE messages when reset to DEBUG

                 Key: LBCLASSIC-109
                 URL: http://jira.qos.ch/browse/LBCLASSIC-109
             Project: logback-classic
          Issue Type: Bug
         Environment: SLF4J 1.5.6 and Logback 0.9.15
            Reporter: Andrew Ruch
            Assignee: Logback dev list
            Priority: Minor

When reconfiguring the LoggerContext, TRACE messages are logged even when the Logger level is set to DEBUG.

As Ceki pointed out, the following test reproduces the issue.

  public void levelResetTest() {
    LoggerContext loggerContext = new LoggerContext();

    Logger root = loggerContext.getLogger(LoggerContext.ROOT_NAME);
    loggerContext.reset();  //Logger is reset to DEBUG
    assertFalse(root.isTraceEnabled());  <-- assertion fails

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the logback-dev mailing list