It depends on what is generating the stack trace. In order to get this behavior there has to be a line by line emission of the stack trace using System.err.println() for each line rather than one System.err.println() with the entire stack trace as a message. What is the source of this?
xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vladyslav Kosulin Sent: Tuesday, January 27, 2004 10:26 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] log4j SMTP appender trouble It looks like the logging event contains just 1 line from the exception trace instead of the whole trace!!! Is this a bug or a feature? Vlad > Hi all, > 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