logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lee P. Reilly" <lrei...@lanl.gov>
Subject Including the PID in the ConversionPattern?
Date Fri, 12 Aug 2005 17:27:25 GMT
Hi guys,

Can you tell me if there a way that I can use set the ConversionPattern 
in Log4J to include the PID of the currently executing thread? In our 
house-build logging code, we do:

 String[] cmd = { "/bin/bash", "-c", "echo $PPID" };
 Process p = Runtime.getRuntime().exec(cmd); // etc.

I see that the Perl implementation supports this, but can't find 
reference to it in the Java version. Does anyone have a quick hack?

Cheers,
 Lee

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