I have an application for which I would like to use the SMTP logging appender, but would like to add functionality that would limit the number of e-mail messages generated.
Presently, log messages are passed through a method that keeps track of the number and frequency of log messages by level (DEBUG, INFO, etc.). If any ERROR messages are received in a specified period of time (say 5 minutes), only the first message received is actually mailed and the clock is reset. This is intended prevent our operations personnel from being flooded with e-mail messages in the case of a pathetic error condition in our server. In the case of a pathetic, continuing error condition, operations personnel will receive one message each 5 minutes no matter how many errors are actually generated by the server. Is there any way to control the sending of SMTP log messages in this manner? Is there a facility that is similar that could be adapted to meter the flow of e-mail log messages generated by the SMTP appender? Thank you, Ken Parrish Gomez, Inc.
