logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Simchi" <Shai.Sim...@invoke.com>
Subject RE: problems with chanisaw hostname
Date Thu, 22 Sep 2005 16:10:26 GMT
but that contrasicts the fact that on the same chainsaw machine i get the hostname (actual
name as a string) for some machines and the IP for other machines.
any explanation ?

-----Original Message-----
From: Scott Deboy [mailto:sdeboy@comotivsystems.com]
Sent: Thursday, September 22, 2005 7:18 PM
To: Log4J Users List
Subject: RE: problems with chanisaw hostname


I was wrong - it's set on the Chainsaw side in
org.apache.log4j.net.SocketNode (used by SocketReceiver):

String remoteInfo = socket.getInetAddress().getHostName() + ":" +
socket.getPort();

So there is a lookup performed - see
http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html#getHos
tName()

Scott

-----Original Message-----
From: Shai Simchi [mailto:Shai.Simchi@invoke.com] 
Sent: Thursday, September 22, 2005 8:41 AM
To: Log4J Users List
Subject: RE: problems with chanisaw hostname

ok - and how do i configure that ? 
or where does log4j takes that name from ?
Shai

-----Original Message-----
From: Scott Deboy [mailto:sdeboy@comotivsystems.com]
Sent: Thursday, September 22, 2005 6:41 PM
To: Log4J Users List
Subject: RE: problems with chanisaw hostname


Sending side is responsible for setting the host name..

-----Original Message-----
From: Shai Simchi [mailto:Shai.Simchi@invoke.com]
Sent: Thursday, September 22, 2005 8:30 AM
To: log4j-user@logging.apache.org
Subject: problems with chanisaw hostname

Hi all !
i am using chainsaw. in the client i can see that for some machines i
get the hostname as the machine name and for some other machines i get
the hostname as the machines IP.
I would like to get all machine names.
is the sending side responsible for supplying the machine name/IP ? how
do i control it  (my log4j.xml configuration files are identical) ?
please advise,

thanks,

Shai Simchi
Invoke Solutions Ltd.
+972-3-5756828 (ext. 206)
+972-66-227746 (mobile)
+972-3-5756829 (Fax)
mailto:shais@invoke.com
www.invoke.com 








---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message