logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luedecke, Michael J" <michael.luede...@eds.com>
Subject RE: AsyncAppender Issue
Date Wed, 11 Apr 2007 19:33:44 GMT
I believe I have determined the cause of the behavior I was experiencing
with the AsyncAppender.  It was a combination of things:

1.  I was "re-using" an instance-level object I was trying to log.  It
appears I was overwriting the properties of the object before the
AsyncAppender had a chance to pass the log onto the attached appender.
This was resolved by making sure I was sending a new local-level object
reference in each log method call.

2.  My application was stopping before the AsyncAppender had a chance to
log the last logs.  I now close the AsyncAppender before the application
closes, which forces the last logs to complete before the application
completely closes.

Thanks. 

-----Original Message-----
From: Curt Arnold [mailto:carnold@apache.org] 
Sent: Tuesday, April 10, 2007 3:58 PM
To: Log4J Users List
Subject: Re: AsyncAppender Issue


>
> Has anyone else experienced this type of behavior with the 
> AsyncAppender?
>
> Thanks.
>
>

Nope.  You should pack up your test case and file a bug report to see if
we can figure out what is going on.  If you can identify the problem and
propose a patch even better.

---------------------------------------------------------------------
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