I guess thats the problem. The errors are generated from third-party library and I don't have it's source code. It's important for me to log these errors but as an separate mail i'ts quite inconvenient.
I suppose the errors are logged using System.err.print() and log4j interpret it correctly as ERROR level but somehow can't process the stack trace correctly. James Stauffer wrote: > > How are you logging the stack trace? Normally each stack trace line > wouldn't get its own line prefix. > > On 5/7/07, pawelt <[EMAIL PROTECTED]> wrote: >> >> Is it possible to configure appender to sent the whole error stack >> messages >> as one email message? >> Using a default configuration each error line is sent as a separate email >> so >> for following stack I got 6 emails >> >> 2007-05-06 07:13:39,024 ERROR [STDERR] >> sun.awt.image.ImageFormatException: >> Unsupported color >> 2007-05-06 07:13:44,071 ERROR [STDERR] at >> sun.awt.image.JPEGImageDecoder.readImage(Native Method) >> 2007-05-06 07:13:49,118 ERROR [STDERR] at >> sun.awt.image.Joder.produceImage(JPEGImageDecoder.java:119) >> 2007-05-06 07:13:54,181 ERROR [STDERR] at >> un.awt.image.ISource.doFetch(InputStreamImageSource.java:246) >> 2007-05-06 07:13:59,228 ERROR [STDERR] at >> sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172) >> 2007-05-06 07:14:04,321 ERROR [STDERR] at >> sun.awt.image.ImageFetcher.run(ImageFetcher.java:136) >> >> Thanks in advance! >> Pawel >> >> -- >> View this message in context: >> http://www.nabble.com/SmtpAppender---separate-emails-problem-tf3703348.html#a10356187 >> Sent from the Log4j - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > > -- > James Stauffer http://www.geocities.com/stauffer_james/ > Are you good? Take the test at http://www.livingwaters.com/good/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/SmtpAppender---separate-emails-problem-tf3703348.html#a10356640 Sent from the Log4j - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]