[logback-user] Getting null from getPropertyMap in LogbackMDCAdapter in the same thread, different binary

GS gurnamsjunk at gmail.com
Thu Aug 4 19:46:47 CEST 2011


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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20110804/b1a8aa7a/attachment.html>


More information about the Logback-user mailing list