Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.17.2
-
None
-
None
Description
When invoking org.apache.log4j.MDC.get(key) on library {{{}org.apache.logging.log4j:log4j-1.2-api
{}}}you don'thave access to Thread-Context variables that where set with
- org.apache.logging.log4j.ThreadContext.put(key, value) from org.apache.logging.log4j:log4j-core
- org.slf4j.MDC.put(key, value) from org.apache.logging.log4j:log4j-slf4j-impl
- probably pother brigdes too
See JUnit tests in ThreadContextConsistencyTest.java from a simple maven project with pom.xml