logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phineas Fung" <phineas.f...@ckh.com.hk>
Subject RE: Logging for multi-processor server
Date Sat, 10 Dec 2005 03:39:48 GMT
Thanks, but may I know how to dedicate an instance to each processor?

The code to get / initialize a logger is the same for all processors,
and there is no Java API to identify the processor ID.

Thx alot.


Best Regards,
Phineas Fung

-----Original Message-----
From: Scott Deboy
Sent: Saturday, December 10, 2005 11:31
To: Log4J Users List
Subject: RE: Logging for multi-processor server


The only wsy I can think of is if you can dedicate an instance to each
processor and log to separate files.

----Original Message-----
From: Phineas Fung
Sent: Fri 12/9/2005 7:26 PM
To: Log4J Users List
Subject: RE: Logging for multi-processor server

Hi,

I'm writing a Java server-side application that will be deployed to a
multi-processor machine.

I'm wondering if Log4J has any facility (e.g. conversion pattern) that
allows me to show which processor (or LWP in Solaris) is responsible for a
particular line in log file.

E.g. I want sth like this:

2005-12-03 01:15:32,425 WARN  [ Thread-10] [Processor-3]
calculationEngine.calculator...
2005-12-03 01:15:37,422 WARN  [ Thread-10] [Processor-3]
calculationEngine.calculator.
2005-12-03 01:15:39,796 WARN  [ main] [Processor-1]
calculationEngine.calculator...
2005-12-03 01:18:22,099 WARN  [ Thread-25] [Processor-2]
calculationEngine.calculator...

Or if conversion pattern is not possible, is there any other way I can
differentiate which processor is printing which log stmt in the log file?

Any pointers will be greatly appreciated.

Thanks alot.


Best Regards,

Phineas Fung

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org





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