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

Reply via email to