Hi, all.
I am testing the example socket Appender. 
Although it is spitting out the log I want, but I have 2 warnings I am not sure why.
Does anyone have any idea why I am getting the config file not found error? and my 
config file for client resides in c:\configSocket.lcf.
And I am passing in the configSocket.lcf to main program like following.

     PropertyConfigurator.configure(args[0]);

Could anyone find out where I went wrong?

Thanks!!!!


 [execute socket server]

E:\jakarta-log4j-1.1.3\dist\lib>java -cp e:\jakarta-log4j-1.1.3\dist\lib\log4j.jar 
org.apache.log4j.net.SocketServer 8989 c:\SocketServer.lcf c:\

0     INFO  [main] net.SocketServer  - Listening on port 8989
30    INFO  [main] net.SocketServer  - Waiting to accept a new client.
11797 INFO  [main] net.SocketServer  - Connected to client at /127.0.0.1
11797 INFO  [main] net.SocketServer  - Locating configuration file for /127.0.0.1
11797 WARN  [main] net.SocketServer  - Could not find config file [c:\.lcf].
11797 WARN  [main] net.SocketServer  - Could not find config file [c:\generic.lcf]. 
Will use the default hierarchy.
11797 INFO  [main] net.SocketServer  - Starting new socket node.
11827 INFO  [main] net.SocketServer  - Waiting to accept a new client.
11847 INFO  [main] log.MyApp  - Entering application.
12328 DEBUG [main] log.Bar  - Did it again!
12348 INFO  [main] log.MyApp  - Exiting application.
12388 INFO  [Thread-1] net.SocketNode  - Caught java.io.EOFException closing 
conneciton.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to