[
https://issues.apache.org/jira/browse/LOG4J2-252?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matej Vitásek updated LOG4J2-252:
---------------------------------
Description:
I am using Log4j 2 for a Tomcat web application to send me an e-mail whenever
an ERROR occurs. Usually, more than one error is produced at one time, and I
get a lot of e-mails over a period of a few seconds.
It would be great if the SMTPAppender could cluster more events into one mail.
Of course, one has to be sure that Log4j 2 is not waiting too long to send me
the errors, which could be solved by a timeout setting.
So I propose the following: add a new timeout setting to the SMTPAppender.
Whenever an event that would trigger sending a mail occurs, wait for timeout
seconds and bundle whatever else events occur into this mail. Only then send
the mail.
was:
I am using Log4j 2 for a Tomcat web application to send me an e-mail whenever
an {{ERROR}} occurs. Usually, more than one error is produced at one time, and
I get a lot of e-mails over a period of a few seconds.
It would be great if the {{SMTPAppender}} could cluster more events into one
mail. Of course, one has to be sure that Log4j 2 is not waiting too long to
send me the errors, which could be solved by a timeout setting.
So I propose the following: add a new {{timeout}} setting to the
{{SMTPAppender}}. Whenever an event that would trigger sending a mail occurs,
wait for {{timeout}} seconds and bundle whatever else events occur into this
mail. Only then send the mail.
> SMTPAppender: send multiple events in one mail
> ----------------------------------------------
>
> Key: LOG4J2-252
> URL: https://issues.apache.org/jira/browse/LOG4J2-252
> Project: Log4j 2
> Issue Type: Wish
> Reporter: Matej Vitásek
>
> I am using Log4j 2 for a Tomcat web application to send me an e-mail whenever
> an ERROR occurs. Usually, more than one error is produced at one time, and I
> get a lot of e-mails over a period of a few seconds.
> It would be great if the SMTPAppender could cluster more events into one
> mail. Of course, one has to be sure that Log4j 2 is not waiting too long to
> send me the errors, which could be solved by a timeout setting.
> So I propose the following: add a new timeout setting to the SMTPAppender.
> Whenever an event that would trigger sending a mail occurs, wait for timeout
> seconds and bundle whatever else events occur into this mail. Only then send
> the mail.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]