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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to