-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 All,
We use log4j for logging in our webapps, and I'm considering enabling email notifications of errors. Not that it would ever happen (of course!), but I want to avoid a situation where some bug is triggered and thousands of log messages are emitted, each sent individually to me. I checked the Javadoc for SMTPAppender and it looks like there is some sort of buffering going on, but there appear to be very few options for controlling the frequency of message sending (I'd probably want ~5 minute intervals or so). It looks like I can use a TriggeringEventEvaluator coupled with a background thread that, say, issues a "SEND EMAIL NOW" message at intervals so flush whatever buffer exists in the appender. Has anyone ever done anything like this before? If so, do you have any tips? Thanks, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkuFP0sACgkQ9CaO5/Lv0PCdggCfRwTq12uW0xNw4Bwjzfw9J8cH 4mUAn3gvtxAqAfVv584n2JirYu4DtNNB =fGQ0 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org