RE: Log4net bug when using ThreadContext

2006-07-23 Thread Ron Grabowski
hrow an exception, but it stopps logging. > > > > From: Ron Grabowski [mailto:[EMAIL PROTECTED] > Sent: Sun 2006-07-23 22:42 > To: Log4NET User > Subject: Re: Log4net bug when using ThreadContext > > > > This code: > > /

RE: Log4net bug when using ThreadContext

2006-07-23 Thread Oren Eini
1.2.9, I think (not at the office right now). It doesn't throw an exception, but it stopps logging. From: Ron Grabowski [mailto:[EMAIL PROTECTED] Sent: Sun 2006-07-23 22:42 To: Log4NET User Subject: Re: Log4net bug when using ThreadContext This

Re: Log4net bug when using ThreadContext

2006-07-23 Thread Ron Grabowski
This code: // Console Application ConsoleAppender consoleAppender = new ConsoleAppender(); consoleAppender.Layout = new PatternLayout("%level %message %property"); BasicConfigurator.Configure(consoleAppender); ILog log = LogManager.GetLogger(typeof(Class1)); using (ThreadContext.Stacks["1

Log4net bug when using ThreadContext

2006-07-23 Thread Oren Eini
The following code is failing, even though it looks like it can work:   MemoryAppender appender = new MemoryAppender(); ILog logger = LogManager.GetLogger("foo");   BasicConfigurator.Configure(appender);   using (log4net.ThreadContext.Stacks["1"].Push(null)) {     logger.Error("Sho