Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

limiting emails from smtpappender (log4Net)

Tags:

log4net

I am looking for a way to limit SmtpAppender to limit number of emails sent in case of same error is occurred multiple times in a defined time span.

I don't know if it is even possible, any help will be appreciated

like image 528
user65266 Avatar asked Feb 11 '09 21:02

user65266


2 Answers

I have not tried this extended SMTP appender, but it seems to be be what you need.

http://mail-archives.apache.org/mod_mbox/logging-log4net-user/200804.mbox/%3C6D3CA9B0BEA31640B4E6338360C847400223ECCB@entdc1ms02.corp.gomez.com%3E

like image 158
Mathias F Avatar answered Oct 05 '22 22:10

Mathias F


You could always extend SmtpAppender to implement the functionality you need.

Like this example post.

like image 44
Eddie Avatar answered Oct 05 '22 23:10

Eddie