Details
-
Bug
-
Resolution: Unresolved
-
None
-
1.6.x
-
None
-
Operating System: Windows NT
Platform: PC
-
normal
-
P1
-
253
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.