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 Paul Voutier <pv...@hotmail.com> on 2002/08/01 12:03:29 UTC

another AsyncAppender class question

hi,

thanks for your answer to my previous question, Ceki.

I understand your answer and, of course, I understand the need to tidy up 
properly.

I am still concerned about the waiting though.

I have written a simple "waiting" appender, which on close() just sleeps for 
10 seconds.

I then wrote a test in which I added this appender to an AsyncAppender, 
which I then added to a logger. When I call close() on the logger (which 
calls AsyncAppender.close()), it takes 10 seconds (plus a tiny bit) for the 
main thread to complete.

If I am doing things asynchronously, shouldn't the closing (and here the 10 
second waiting) be done asynchronously too?

Is this a bug?

Is there some sort of work-around to ensure that the closing of the appender 
attached to the AsyncAppender is done asynchronously?

...

thanks,

Paul

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>