You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by pawelt <pa...@media-press.tv> on 2007/05/07 14:07:32 UTC

SmtpAppender - separate emails problem

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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: SmtpAppender - separate emails problem

Posted by D_T <De...@gmail.com>.
Did you get this resolved? I am also facing the same problem..
It would be great if you could share your learnings


pawelt wrote:
> 
> 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 <pa...@media-press.tv> 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: log4j-user-unsubscribe@logging.apache.org
>>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>>
>>>
>> 
>> 
>> -- 
>> James Stauffer        http://www.geocities.com/stauffer_james/
>> Are you good? Take the test at http://www.livingwaters.com/good/
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/SmtpAppender---separate-emails-problem-tp10356187p18370986.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: SmtpAppender - separate emails problem

Posted by pawelt <pa...@media-press.tv>.
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 <pa...@media-press.tv> 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: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>>
> 
> 
> -- 
> James Stauffer        http://www.geocities.com/stauffer_james/
> Are you good? Take the test at http://www.livingwaters.com/good/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> 
> 

-- 
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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: SmtpAppender - separate emails problem

Posted by James Stauffer <st...@gmail.com>.
How are you logging the stack trace?  Normally each stack trace line
wouldn't get its own line prefix.

On 5/7/07, pawelt <pa...@media-press.tv> 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: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


-- 
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org