You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Shaily Goel <gs...@novell.com> on 2004/09/14 07:18:00 UTC

catching the exceptions thrown by log4net

I am using log4net to log events (Error , Warning , Info and Debug)to
RollingFileAppender, Syslog etc..

Currently if any error or warning occurs during the working of log4net
it throws exceptions which it write to console as log4net:Error
<exception> or log4net.Warn <exception> 

My requirement is like this: Whenever any exception(Error , Warning or
Info) is raised during the working of log4net . it should write the
exception in file instead of writing it to Console. How can i achieve
this. What should i do to catch the exceptions which is thrown by
log4net environment.

Environment:
Suse 8.2
Log4Net 120 Beta 8
mono 

Thanks
Shaily