logo       

Log4j: Multiple appenders and rolling the log: msg#00000

org.user-groups.trijug.juglist

Subject: Log4j: Multiple appenders and rolling the log

Our J2EE (JEE) application comprises a WAR for the web component and an EJB JAR.  Both use the same log4j properties file and therefore are configured to write to the same destination (a RollingFileAppender).  The trouble with this is that the file cannot be rotated because when one of the parties (the Elb app or the web app) tries this operation, it is denied because the other has it locked.
 
What is the recommended approach around this problem?  Configuring the EJB app and the web app to write to different locations would require the untenable task of having to piece together messages from different files to get a chronologically contiguous listing. 
 
Any thoughts?
 
Sri
_______________________________________________
Juglist mailing list
Juglist-bp0x9FgzZDMdnm+yROfE0A@xxxxxxxxxxxxxxxx
http://trijug.org/mailman/listinfo/juglist_trijug.org
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise