log4net Contexts and ASP.NET

2006-02-15 Thread josh robb
I've seen an email from Piers Williams in december asking about this. Basically - in an ASP.NET application - none of the existing contexts are "safe" to use. I'd like to remedy this. There are two ways forward that I can see. 1. Add a new WebContext class. 2. Change the ThreadLogicalContext cla

Re: log4net Contexts and ASP.NET

2006-02-15 Thread Chad Humphries
Josh, I remember seeing some chatter about this (I think adaptive context) here (http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200512.mbox/[EMAIL PROTECTED]) and here (http://www.mail-archive.com/log4net-user@logging.apache.org/msg02670.html). I'm not sure if any movement has b

Re: log4net Contexts and ASP.NET

2006-02-15 Thread josh robb
Yep - Thats the email I was talking about. Thanks for the reply. j.

Re: log4net Contexts and ASP.NET

2006-02-15 Thread Chad Humphries
Sorry, I blanked and completely glazed over the first line of your email. :) -Chad On 2/15/06, josh robb <[EMAIL PROTECTED]> wrote: > Yep - Thats the email I was talking about. > > Thanks for the reply. > > j. >

Re: log4net Contexts and ASP.NET

2006-02-15 Thread Ron Grabowski
I don't think HttpContext is always available...especially inside the Global.asax.cs methods and/or inside CacheItemRemovedCallback methods. According to this article: http://www.odetocode.com/Articles/112.aspx HttpContext is just a wrapper around System.Runtime.Remoting.Messaging.CallContext.