Of course the synchronization only applies to a single JVM. If you have
muliple applications running in multiple JVMs all logging to the same text
file, you are likely to have problems.

Rick Hansen

> -----Original Message-----
> From: Seemantini Godbole [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 16, 2001 1:25 PM
> To: 'LOG4J Users Mailing List'
> Subject: RE: pl. help on Appenders; or rather DailyRollingFileAppender
> 
> 
> What was I thinking? Sorry, but I just saw synchronized 
> around doAppend in
> AppenderSkeleton. That really eliminates need for putting 
> synchronized in
> any of the sub classes. However, the question about messages 
> getting mixed
> still remains? 
> 
> Thanks
> 
> -----Original Message-----
> From: Seemantini Godbole 
> Sent: Monday, July 16, 2001 1:09 PM
> To: 'LOG4J Users Mailing List'
> Subject: pl. help on Appenders; or rather DailyRollingFileAppender
> 
> 
> Hi All,
> 
> I really need help on some confusion surrounding a log I saw. 
> I am using
> DailyRollingFileAppender, and looked at a single line of log 
> which had a
> mish-mash combination of 3 to 4 log messages.
> 
> seems like three or 4 threads were competing to write to this 
> file. We have
> a JSP, servlet, EJB architecture, so that is very possible.
> 
> However, I looked at the code of WriterAppender, FileAppender and then
> DailyRollingFileAppender and did not see any synchronized 
> blocks around
> append or subAppend. Is that for performance reason or have I missed
> something. I need to have only one message logged into one 
> line in file. 
> 
> Thanks,
> Seemantini
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to