Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-48

MDC Problem w/ SLF4J 1.4.2 & LogBack 0.9.7

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Implementations
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              slf4j-dev SLF4J developers list
              Reporter:
              sdavids@gmx.de Sebastian Davids
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: