logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bartsch Axel <axel.bart...@siemens.com>
Subject using log4j to one logging file from more than one process
Date Mon, 26 Jul 2004 14:35:16 GMT
Hello,

I want to write into a logging file with log4j from an application that consists of 3 processes
(=JAVA VMs).

Each process calls

String configFileName = "log.properties";
PropertyConfigurator.configure(configFileName);
tfl = Logger.getLogger("debug");

and then logs e.g. with
tfl.debug("hello");

The loggging file gets corrupted:
- each process writes into it, after a while 0Hex whitespace is added to the logging file
- there is output-process1, whitespace, output-process2, whitespace, output-process3, whitespace
- some trace outputs are missing
-timestamps start new with each output-processX

Is it possible to use log4j for wrting into the same file for multiple processes (=JAVA VMs).

Axel

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