Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

logging through sockets

807603Nov 27 2007
Hi
I'm trying to send logging information through sockets using log4j.
My configuration file is :

log4j.rootLogger=Debug, Socket
log4j.appender.Socket=org.apache.log4j.net.SocketAppender
log4j.appender.Socket.Port=12345
log4j.appender.Socket.RemoteHost=localhost
log4j.appender.Socket.LocationInfo=true

the server only reads the input string that the logger sends.

I'm getting this exception on the client side:

log4j:WARN Detected problem with connection: java.net.SocketException: Software caused connection abort: socket write error

and this message on the server:

Server started...
Client accepted
������������org.apache.log4j.spi.LoggingEven�������������
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 25 2007
Added on Nov 27 2007
0 comments
342 views