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 "Ishihara, Noriaki" <No...@fiserv.com> on 2001/09/20 22:24:37 UTC

socket appender

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: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Re: socket appender

Posted by T Master <tm...@iknowledgeinc.com>.
Your config file is :    c:\configSocket.lcf

Apparently you are passing:   c:\.lcf         hence the warning message.
Log the contents of args[0] , and see the actual value, and correct as
necessary.

T Master.


----- Original Message -----
From: "Ishihara, Noriaki" <No...@fiserv.com>
To: <lo...@jakarta.apache.org>
Sent: Thursday, September 20, 2001 2:24 PM
Subject: socket appender


> 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: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>


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