logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: ThreadLogicalContext not actually following logical threads
Date Mon, 28 Nov 2011 16:52:00 GMT
On 2011-11-27, Andrew Arnott wrote:

> 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?

LogicalThreadContext uses SetData rather than LogicalSetData (the latter
isn't available in .NET 1.x).  Based on no knowledge other than MSDN it
is unclear to me what SetData would do if it didn't work on the logical
thread, but there probably is a reason for having two methods.


View raw message