logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: log4j write synchronization
Date Thu, 27 Jul 2006 02:07:51 GMT

On Jul 26, 2006, at 3:57 PM, Michael Gesundheit wrote:

> Sorry for posting this question here but there is no reference to  
> this issue anywhere I could find.
> I would expect developers of the code to know the answer.
>
> If I have 2 or more threads logging a message can I be sure that  
> each write is atomic?
>
> I DID have two write messages creating one invalid line (not with  
> log4j).
>
> Thanks,
> -Michael


log4j synchronizes request processing so that there will not be  
simultaneous append calls to the same file appender.  However, it  
does not attempt to synchronize access to the same file through  
multiple instances of file appenders or accesses to the same file in  
different JVM's.

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


Mime
View raw message