logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kumar.Velug...@ubs.com
Subject How to get host name in log4net version
Date Wed, 26 Jul 2006 13:34:37 GMT

I am trying to log machine name via log4net adonet appender. I am using
log4net version I tried to get the machine name by the
following parameter settings in the adonetappender config section...
					<parameterName value="p_machine"
					<dbType value="String" />
					<size value="255" />
value="%P{log4net:HostName}" />

I want to access the machine name via the log4net pattern layout. Is
there any property defined and accessible for logging machine name by
adding it as an additional parameter to the AdoNetAppender like above".


View raw message