阅读背景:

log4net和log4net的区别是什么?ThreadContext log4net.LogicalThreadContext ?

来源:互联网 

UPDATED on 11/18/2014 - While browsing the log4net source repository, I found that the implementation of LogicalThreadContext was modified in November 2011 to that it stores its properties using CallContext.LogicalSetData (and gets them using LogicalGetData). This is important because that means that LogicalThreadContext should now work correctly. Any data stored in LogicalThreadContext should be "flowed" to any child threads or tasks. This compares to ThreadContext (and the old implementation of LogicalThreadContext) where data stored in the context would remain local to the current thread and NOT flowed to child threads/tasks.UPDATED on 11/18/2014 - While browsing the log4




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: