Sohan's Blog

Things I'm Learning

Log4Net SmtpAppender and Sending Emails With Log Messages

Since my client asked me if it was possible to generate emails for log entries on an error/fatal level I took a look into the Log4Net SmtpAppender. In your project you may need to implement a similar function and in that case you may use a log4net configuration like the following one-