[slf4j-dev] [Bug 281] New: JCLLoggerAdapter has log.isDebugEnabled() in trace method

bugzilla-daemon at qos.ch bugzilla-daemon at qos.ch
Thu Nov 8 17:39:14 CET 2012


http://bugzilla.slf4j.org/show_bug.cgi?id=281

           Summary: JCLLoggerAdapter has log.isDebugEnabled() in trace
                    method
           Product: SLF4J
           Version: 1.6.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: Unspecified
        AssignedTo: slf4j-dev at qos.ch
        ReportedBy: vvolkova at softserveinc.com


JCLLoggerAdapter contains:
public void trace(String format, Object arg1, Object arg2) {
    if (log.isDebugEnabled()) {
      FormattingTuple ft = MessageFormatter.format(format, arg1, arg2);
      log.trace(ft.getMessage(), ft.getThrowable());
    }
  }

log.isDebugEnabled() is used instead of log.isTraceEnabled()

Issue is present in the slf4j-jcl-1.7.2 for all trace methods.

-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the slf4j-dev mailing list