Is there a log4net pattern for machineName

Ralph Shillington picture Ralph Shillington · Jun 17, 2009 · Viewed 10.3k times · Source

I'm having a hard time finding documentation on the various 'in the box' patterns like

%logger  
%level  
%timestamp  

There is of course the example page but I'm not sure that's the full list of options.

I also know that it's possible to MDC parameters out of the app to the logger, but that involves a code change which is a different beast than a config change.

Is there a %machineName option, or machineIP option? The issue is that we have all our servers in the web farm log into the same database log, and we're now thinking that a disproportionate number of messages are coming from one machine.

Answer

JC. picture JC. · Jun 17, 2009
%property{log4net:HostName}