Use a SimpleSocketServer to write to the file...
For each process set up a SocketAppender to send Trace Events to the
server...

The Server will manage the file and / or console output, etc

... see the documentation for these classes... 

--Stephen

-----Original Message-----
From: Shay Mandel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 06, 2001 3:39 PM
To: '[EMAIL PROTECTED]'
Subject: logging from more than one process to the same file


Hi,

I am using log4j from 2 processes using the same configuration file and
writing to the same log. The problem I have is that the rolling file
appender doesn't roll my files, and I am left with only one file. It doesn't
go over the maximum size, but I do lose some logging that I wanted to keep
backups of.
Does this problem occurs because there are 2 processes writing in the same
time ? Or is there some place else I should seek for the problem. Is there a
solution ?

TIA.

Shay Mandel


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