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 "Peter A. Kirk" <pk...@alpha-solutions.dk> on 2006/04/28 11:24:30 UTC

How to identify a computer in log output?

Hi there

I have several machines all running the same program, all accessing the
same database.

I want to log events from these machines to the same database.

Is it possible to configure log4net to automatically include the
"machine name" or some other unique identifier from the particular
machine in the log?

At the moment we can't tell which machine a particular log output comes
from.

Thanks,
Peter

Re: How to identify a computer in log output?

Posted by Ron Grabowski <ro...@yahoo.com>.
%property{log4net:HostName}

--- "Peter A. Kirk" <pk...@alpha-solutions.dk> wrote:

> Hi there
> 
> I have several machines all running the same program, all accessing
> the
> same database.
> 
> I want to log events from these machines to the same database.
> 
> Is it possible to configure log4net to automatically include the
> "machine name" or some other unique identifier from the particular
> machine in the log?
> 
> At the moment we can't tell which machine a particular log output
> comes
> from.
> 
> Thanks,
> Peter
>