I activated SMTP appender to send errors by e-mail, but can't properly configure it. Every time an Exception happens, I receive a lot of e-mails with every e-mail body containing only 1 line of the Exception trace log, like:
[16:49:04,315,STDERR] at com.sybase.jdbc2.jdbc.SybStatement.queryLoop(SybStatement.java:1596)
Here is config:
<appender name="SMTP" class="org.apache.log4j.net.SMTPAppender"> <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/> <param name="Threshold" value="ERROR"/> <param name="To" value="..."/> <param name="From" value="..."/> <param name="Subject" value="${jboss.server.name} JBoss Error"/> <param name="SMTPHost" value="..."/> <param name="BufferSize" value="100"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="[%d{ABSOLUTE},%c{1}] %m\r\n"/> </layout> </appender>
What's wrong? How to configure it to e-mail the whole trace at once?
Thanks, Vlad
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user