Re: log4net Contexts and ASP.NET

2006-02-16 Thread Aaron Morton
Josh, I've been doing something similar with remoting Contexts. I'm putting some objects into a new Context, and using ContextProperties to inject message sinks which intercept some calls and add information to the Context Property. In this case i'm not using the ThreadLogicalContext as i

Re: log4net Contexts and ASP.NET

2006-02-16 Thread josh robb
Ron Grabowski [EMAIL PROTECTED] wrote: I don't think HttpContext is always available...especially inside the Global.asax.cs methods and/or inside CacheItemRemovedCallback methods. HttpContext is available during the life cycle of a Http request. This includes any event handler in Global.asax

Re: log4net Contexts and ASP.NET

2006-02-16 Thread GlennDoten
On 2/16/06, josh robb [EMAIL PROTECTED] wrote: Conceptually - this is what I'm proposing:if(isWeb and HttpContent.Current != null){ // store context in HttpContext.Current.Items} else { // sore it in CallContext.} Josh, why bother with a flag called isWeb? If HttpContext.Current is not null then