logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Stauffer" <stauffer.ja...@gmail.com>
Subject Re: multiple JVMs writing to the same file
Date Tue, 31 Jul 2007 12:05:36 GMT
You can have each JVM send the events to a single separate JVM with
SocketAppenders.  That single separate JVM would receive events from
all of the other JVMs and write them to a file.

On 7/31/07, Thomas michelbach <t.michelbach@gmail.com> wrote:
> Hello,
>
> I'm using log4j in an environment with multiple jvms. I know that the best
> option for a central logging output, would be a database, but in this
> environment I don't have one. Now I use a different file for each jvm, but I
> need to consolidate them in one file.
>
> The best case would be to have the same appender in each JVM and they would
> have a buffer to protect the file and control the I/O. Is there any sample
> how to do this in log4j? Is it supported?
>
> Bye,
> Thomas
>


-- 
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

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