logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: SMTPAppender not asynchronous using AsyncAppender
Date Fri, 14 Oct 2011 04:42:10 GMT
If an uncaught exception occurs on the worker thread in AsyncAppender and the worker thread
dies, then AsyncAppender will fall back to synchronous behavior. Possibly, you are seeing
this synchronous behavior after death of the AsyncAppender worker thread.


On Jan 6, 2009, at 5:12 AM, amitshinde wrote:

> 
> Hello Everyone,
> 
> I am trying to send asynchronous error emails using log4j. I was
> successfully able to get the emails but it looks like the emails are
> synchronous and block the event processing till the email is sent. This
> happens inspite of using AsyncAppender.
> 
> I am using SMTPAppender and hooked it up with AsyncAppender (<appender-ref
> ref="mail"/>)
> 
> Did anyone else notice this? Can we send emails asynchronously at all?
> 
> 
> Thanks in advance,
> 
> Amit
> 
> 
> 
> 
> 
> 
> -- 
> View this message in context: http://www.nabble.com/SMTPAppender-not-asynchronous-using-AsyncAppender-tp21308582p21308582.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
> 


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


Mime
View raw message