RE: logging log4net exceptions to event log

2005-06-13 Thread Nicko Cadell
t for them. Nicko > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 09 June 2005 08:08 > To: log4net-user@logging.apache.org > Subject: Re: logging log4net exceptions to event log > > Thanks for the reply Nicko. First I would clarif

Re: logging log4net exceptions to event log

2005-06-09 Thread Ron Grabowski
You could write your own EventLogTraceListener (System.Diagnostics.EventLogTraceListener is sealed) that looks for trace messages beginning with the following prefixes: log4net: log4net:WARN log4net:ERROR And logs those messages to the Event Log accordingly. Here is an example that shows how

Re: logging log4net exceptions to event log

2005-06-09 Thread hbmlists
Thanks for the reply Nicko. First I would clarify that I meant internal errors within log4net framework. My requirement is that if there is any internal error within log4net then that should be logged to event log. I am aware of the log4net.internal.debug setting but that logs not only errors

RE: logging log4net exceptions to event log

2005-06-08 Thread Nicko Cadell
Do you mean errors that your application is logging using log4net, or do you mean internal errors within the log4net framework? To log application logged errors to the event log you need to configure an EventLogAppender and wire this up to the root logger: If you want to ca