
4 Aug
2011
4 Aug
'11
5:46 p.m.
After switching from log4j to logback, I am getting null from getPropertyMap() in LogbackMDCAdapter. I can confirm that it's the same thread where the value is being put. However the put is called in a different binary (same JVM of course). If logging is done in the same codebase (binary) where MDC put is called, it works as expected bug it the logger is invoked from a different binary, copyOnInheritThreadLocal.get() in getPropertyMap() is returning null. Any suggestions? Thanks!