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 Roman Konovalov <ro...@greenrain.biz> on 2012/01/29 12:24:53 UTC

Can log4net return exceptions back

Hi,

 

Is it possible to setup log4net to re-throw exceptions back to caller? For
example, if logging to database is timed out, we might want to save such
exception to a file or to send e-mail to the support team. Thank you.

 

Best regards,

Roman

 


Re: Can log4net return exceptions back

Posted by Ron Grabowski <ro...@yahoo.com>.
Implement your own IErrorHandler:

http://logging.apache.org/log4net/release/sdk/log4net.Appender.AdoNetAppenderMembers.html
http://logging.apache.org/log4net/release/sdk/log4net.Core.IErrorHandler.html


________________________________
 From: Roman Konovalov <ro...@greenrain.biz>
To: log4net-user@logging.apache.org 
Sent: Sunday, January 29, 2012 6:24 AM
Subject: Can log4net return exceptions back
 

Hi,
 
Is it possible to setup log4net to re-throw exceptions back to caller? For example, if logging to database is timed out, we might want to save such exception to a file or to send e-mail to the support team. Thank you.
 
Best regards,
Roman