logging through sockets
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�������������