[slf4j-dev] [Bug 57] New: MDC Problem w/ SLF4J 1.4.2 & LogBack 0.9.7

bugzilla-daemon at pixie.qos.ch bugzilla-daemon at pixie.qos.ch
Wed Jul 25 14:49:55 CEST 2007


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

           Summary: MDC Problem w/ SLF4J 1.4.2 & LogBack 0.9.7
           Product: SLF4J
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: Implementations
        AssignedTo: dev at slf4j.org
        ReportedBy: sdavids at gmx.de


http://www.slf4j.org/manual.html#mdc
"If the undelying system does not offer MDC, then SLF4J will silently drop MDC
information."

public final class Main {

    public static void main(String[] args) {
        org.slf4j.MDC.put("test", "test");
        System.out.println("not reached");
    }
}

SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".
SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for further
details.
Exception in thread "main" java.lang.NoClassDefFoundError:
org/slf4j/impl/StaticMDCBinder
        at org.slf4j.MDC.<clinit>(MDC.java:70)
        at Main.main(Main.java:4)


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



More information about the slf4j-dev mailing list