Hello, How To for send one email for one exception not for one email for line, tks
Still this is a problem for me *jboss 4.0.4) and Long4j SMTP configuration send one mail for one line in the exception.
Its been reported so long and I can't find a resolution for this issue
Please help me
From the JBoss docs on logging at http://docs.jboss.org/jbossas/logging/JBossLog4j.pdf#search=%22SMTPAppender%20in%20log4j%20Jboss%22
Each message in the buffer is delivered in a separate email message.
The mail is not sent per line. If your message contains more than one line then the entire message will be sent in the mail. However, it looks like that your messages contain a single line and there are many such messages which you are logging, resulting in that many number of mails being delivered
Hmmm, It is sending one exception tracelog into multiple emails
okay, figured out (at least in my case)
It is the problem with printstacktrace call which was generating mutiple emails for a single exception.