Details
-
Question
-
Status: Closed
-
Minor
-
Resolution: Not A Problem
-
2.15.0
-
None
-
None
Description
Hi, I am trying to migrate one of the app from 1.x to 2.15.0. We were using MDC for lookups and as per bridge api, we can still use MDC for lookups.
In Code, we use
MDC.put("PID", someFunction());
FYI, MDC.get("PID) gives correct lookup information
Configuration File-
appender.rolling.layout.type = PatternLayout appender.rolling.layout.pattern = %d{dd MMM yyyy HH:mm:ss,SSS} %-5p [%t] [%X{PID}] %c - %m%n
But, %X{PID} is giving blank.
Dependencies we are using-
- log4j-1.2-api-2.15.0.jar
- log4j-api-2.15.0.jar
- log4j-core-2.15.0.jar
- log4j-jcl-2.15.0.jar
- commons-logging-1.1.1.jar