atom feed7 messages in org.apache.logging.log4net-userThreadLogicalContext not actually fol...
FromSent OnAttachments
Andrew ArnottNov 27, 2011 11:34 am 
Stefan BodewigNov 28, 2011 8:51 am 
Andrew ArnottNov 28, 2011 9:35 am 
Stefan BodewigNov 28, 2011 9:12 pm 
Andrew ArnottNov 29, 2011 8:10 am 
Stefan BodewigNov 29, 2011 8:22 am 
Andrew ArnottDec 11, 2011 8:33 pm 
Subject:ThreadLogicalContext not actually following logical threads
From:Andrew Arnott (andr@gmail.com)
Date:Nov 27, 2011 11:34:54 am
List:org.apache.logging.log4net-user

I'm trying to use log4net.LogicalThreadContext.Stacks[stackName].Push(value) to push context onto the logical thread. But I can see that ThreadPool.QueueUserWorkItem, and other ways that the .NET CallContext is propagated do not actually receive the log4net.LogicalThreadContext, and as a result these other threads don't have any stack inherited from the context that spawned it.

I am successfully using CallContext.LogicalSetData myself for other logical thread tracking purposes in my application so I have reason to believe it works -- I just don't know why log4net isn't working. Any ideas?

Thanks.