Can I disable log4j exception emails?

I have a java process (inside tomcat) that uses log4j to enter files and send messages for exceptions. This works very well until the other day a piece of code fell into a bad way, throwing many exceptions every few seconds - sending several thousand letters.

Is there any way to throttle emails sent from log4j? Perhaps "just send this exception once" or "send this exception at most once every 5 minutes."

(Of course, I will fix the code for this particular circumstance, but it runs every 10 days during the night, so this could happen in the future)

Thank you in advance

Ryan

+4
source share

All Articles