You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Stephen Hebert <St...@reuters.com> on 2007/05/11 18:42:27 UTC

PatternLayout and ProcessId/PID property

I need to expose the processID when logging, but I am not seeing how to
do this with a layout type of "PatternLayout". My conversion pattern of:

<conversionPattern value="%appdomain %property{log4net:HostName}
%processid 0000 %location | %message"/>

Results in:
MYAPP.EXE MYMACHINErocessid 0000 actual-location-text |
actual-message-text

I see google-hits where people are referencing the PID in the
RollingFileAppender but it does not appear to be valid in the
Patternlayout.  Any ideas or am I just missing something in the docs?

Thank you.

This email was sent to you by Reuters, the global news and information company. 
To find out more about Reuters visit www.about.reuters.com

Any views expressed in this message are those of the individual sender, 
except where the sender specifically states them to be the views of Reuters Limited.

Reuters Limited is part of the Reuters Group of companies, of which Reuters Group PLC is the ultimate parent company.
Reuters Group PLC - Registered office address: The Reuters Building, South Colonnade, Canary Wharf, London E14 5EP, United Kingdom
Registered No: 3296375
Registered in England and Wales