logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob L. Anawalt" <janaw...@geckosoftware.com>
Subject Re: application property
Date Fri, 14 May 2010 16:14:35 GMT
Doesn't it inherit from the parent thread so if you set the MDC before 
spawning any new threads it has those properties?

On 2010-05-12 08:57, Dale King wrote:
> I just remembered that MDC is local to each thread, so you need to do 
> this in each thread. In my case my code was a business logic DLL that 
> was called by a 3rd party app which created all the threads, so I 
> wrapped all my exposed entry points with MDC::put and MDC::remove.

Jacob Anawalt
Gecko Software, Inc.

View raw message