Use mdc.
-----Original Message-----
From: Lee P. Reilly [mailto:[EMAIL PROTECTED]
Sent: Friday, August 12, 2005 12:27 PM
To: [email protected]
Subject: Including the PID in the ConversionPattern?
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]