You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Jonathan Cowherd <jo...@genscape.com> on 2003/01/03 21:31:25 UTC

log4j SocketServer issue

I'm on a internal network which doesn't resolve IPs to domain names.  It
looks as if org.apache.log4j.net.SocketServer will handle IPs for conf files
like:

java -cp log4j.jar org.apache.log4j.net.SocketServer 3000 log4j.properities
conf

and my remote config files are:

conf/192.168.15.103.lcf

I tried adding something to my /etc/hosts file and naming that IP
win.int.network.net and adding the following to my conf directory:

conf/win.int.network.net

But I still get the following when I write a test message:

[2003-01-03 16:20:06,692] Listening on port 3000
[2003-01-03 16:20:06,711] Waiting to accept a new client.
[2003-01-03 16:20:19,002] Connected to client at /192.168.15.103
[2003-01-03 16:20:19,003] Locating configuration file for /192.168.15.103 
[2003-01-03 16:20:19,004] Could not find config file
[/home/jcowherd/log4j/conf/.lcf]. 
[2003-01-03 16:20:19,005] Could not find config file
[/home/jcowherd/log4j/conf/generic.lcf]. Will use the default hierarchy. 
[2003-01-03 16:20:19,005] Starting new socket node. [2003-01-03
16:20:19,050] Waiting to accept a new client. 
[2003-01-03 15:19:07,763] Test message. 
[2003-01-03 16:20:19,067] Caught java.net.SocketException closing
conneciton.

What I've noticed is that the first file is ".lcf" as if it didn't get a
name for the IP.  Maybe it tries to get the name from the remote client.

I'm using log4j-1.2.7 with JDK 1.4.1 on SuSE Linux 8.0 Pro.

Thanks in advanced.

Jonathan Paul Cowherd
Linux and Java Administrator
Genscape, Inc.
Email:  jonathan.cowherd@genscape.com
Office: (502) 583-3730
Mobile: (502) 314-0444

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>