RE: [Log4net-devel] Log an Exception

2004-12-19 Thread Nicko Cadell
Mike, > What files do I need (from Log4NET's CVS repository) in order > to get Log4NET to use the Exceptions ToString() method when > rendering an exception? You can just patch the 1.2 beta 8 source code if you prefer. In the src\ObjectRenderer\DefaultRenderer.cs file in the DoRender method on

RE: How to use ErrorHandler

2004-12-19 Thread Nicko Cadell
Mike, Currently log4net does not provide any support for fallback appenders on error. The IErrorHandler interface does not pass the LoggingEvent object that was being appended, neither does it provide any semantics for notifying about recovery from errors. Handling errors is particularly difficult

RE: Why does log4net.LogManager.Shutdown() throw an exception?

2004-12-19 Thread Nicko Cadell
Dru, Do you have the stack trace for the exception? Nicko > -Original Message- > From: Dru Sellers [mailto:[EMAIL PROTECTED] > Sent: 18 December 2004 15:53 > To: 'Log4NET User' > Subject: Why does log4net.LogManager.Shutdown() throw an exception? > > - $exception {"Object reference no

RE: LogManager.Shutdown

2004-12-19 Thread Nicko Cadell
Dru, The LogManager and LoggerManager Shutdown methods are static so changing them to follow the IDisposable pattern does not seem the right way to go. A Shutdown method is exposed by the IPlugin and ILoggerRepository interfaces. The behaviour of this method should be similar to a Dispose method

RE: ADONetAppender - returning output parameters

2004-12-19 Thread Nicko Cadell
Aaron, > I had that same thought. There are a couple of problems I saw > with that, though. The LoggingEvent object is passed in by > value, through several intermediary objects. Each of those > would have to be changed, which would affect five or six > objects just to change them to use refe

Re: Why does log4net.LogManager.Shutdown() throw an exception?

2004-12-19 Thread Graham Innocent
Search your codebase for all instances of LogManager.Shutdown, put breakpoints on them, then run the code in the debugger. Cheers, Graham Innocent Parthenon Computing +44-1865-811184 http://www.parthcomp.com Dru Sellers wrote: How would I check that? Dru -Original Message---

RE: Why does log4net.LogManager.Shutdown() throw an exception?

2004-12-19 Thread Dru Sellers
How would I check that? Dru -Original Message- From: Graham Innocent [mailto:[EMAIL PROTECTED] Sent: Saturday, December 18, 2004 2:08 PM To: Log4NET User Subject: Re: Why does log4net.LogManager.Shutdown() throw an exception? Dru Sellers wrote: > > - $exception {"Object reference not s