tags:

views:

491

answers:

3

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

A: 

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

Eddie
A: 

I understand, but it will be great if you can shed some light on how this can be achieved.

+3  A: 

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

Malcolm Frexner