Hi Nicko,

Due to time constraints I just created a custom property and set the hostname 
myself. I basically copied and pasted the function from SystemInfo.HostName. 
Thankfully it works fine. I didn't try to reproduce with 1.2.9.

If it's the first time you've heard of this then it must be just somethink 
wacky with my environment.

Simon.

-----Original message-----
From: "Nicko Cadell" [EMAIL PROTECTED]
Date: Sun, 30 Oct 2005 10:58:50 -0800
To: "Log4NET User" log4net-user@logging.apache.org
Subject: RE: HostName property sometimes empty

> Simon,
> 
> The hostname should always be set. Are you seeing this behaviour
> reliably and repeatably? What is the difference between the scenarios
> where it works and where it does not?
> Have you tried reproducing this with 1.2.9?
> 
> Nicko 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> > Sent: 24 October 2005 23:57
> > To: Log4NET User
> > Subject: HostName property sometimes empty
> > 
> > Hi,
> > 
> > I'm having a problem where I'm trying to log the HostName 
> > property (like this: %P{log4net:HostName}) and on some 
> > servers it seems to work and on others it doesn't. I'm using 
> > v1.2.8 and trying to log to both text files and SQL Server. 
> > In both scenarios I have some cases where it works and some 
> > where it doesn't.
> > 
> > Has anyone else had this problem of the HostName property 
> > being empty??
> > 
> > Thanks,
> > Simon.
> > 
> > 

Reply via email to