3 messages in org.apache.logging.log4j-userRunning the same package in different...
FromSent OnAttachments
Vernier, Dominique (DVernier)03 Jun 2004 21:55 
Vernier, Dominique (DVernier)03 Jun 2004 22:10 
mrut...@westpac.com.au03 Jun 2004 23:50 
Subject:Running the same package in different JVM with the same log4j configuration
From:Vernier, Dominique (DVernier) (dver@relaystar.com)
Date:06/03/2004 09:55:47 PM
List:org.apache.logging.log4j-user

Hi,

I running one the same server multiple JVM machine which are running the same java package. The log4j configuration file location is in a property file in my logger framework package which is also running in each JVM of course. I using a FileAppender to as log trace.

As a File can't be open twice, only one JVM can't write into the file. The problem also occurred for all Appender which extend the FileAppender.

As work around I wrote a new FileAppender which use a System property to post fix the file name. So, I can launch different JVM with different System property and then avoid the concurency problem on a non-sharable ressource.

I would be nice to have this feature in a future release or have a way or it already exists a way (which I ignore) to avoid this problem.

Regards Dominique