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

MDC Problem w/ SLF4J 1.4.2 & LogBack 0.9.7

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • None
    • Implementations
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: