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

NDC.clear needs to be implemented

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.6.x
    • slf4j-ext
    • None
    • Operating System: Windows NT
      Platform: PC

    Description

      The SLF4J NDC implementation just sits on top of MDC and the MDC context is inherited by threads. However, Log4j's NDC context is NOT, unless inherit() is called specifically.

      This makes it impossible to have separate contexts for different thread groups as there's no way to clear any existing context. They all get the root thread context.

      Patched NDC is attached.

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            adb@thorntothehorn.org Antony
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: