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
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
You could always extend SmtpAppender
to implement the functionality you need.
Like this example post.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With