logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javier Gonzalez" <jagon...@gmail.com>
Subject Re: Same configuration file for application running in different JVMs
Date Wed, 28 Jun 2006 14:36:32 GMT
On 6/28/06, Pavan Sara (CONS), IT <sara.pavan.oa@pirelli.com> wrote:
> Thank you very much!
> I'll try.
>
> What about the second situation I described?
> 1) A single application
> 2) Two appenders writing on the same file (but
> with different layout and level).
> Is it not an acceptable configuration?

According to the log4j book, no. Appenders do not perform any
synchronization, so it's pretty much the same situation than 2 JVMs
writing to the same file. This will "likely result in garbled or even
completely corrupt log file".

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