I'm currently looking into doing asynchronous remote logging with log4j.
I've successfully implemented my AsyncAppender and tested it with the console appender, and now I'm trying to implement it with the SocketAppender, but I'm getting this error in the server log file:
Here is my config file on the client:
Here is my client
test code:
Now on the server side I'm running a very simple console app that's really just instanciating the log4j SimpleSocketServer implementation:
With the following config file associated to it:
Since log4j is very verbose, from the Eclipse console I've been able to verify that both config files, client and server, get picked up correctly.
I did find something interesting Googling around:
SimpleSocketServer BufferedIO issue But that didn't help very much. Tried the suggestion and still getting the same error message.
Anyone successfully implemented AsyncAppender + SocketAppender with SimpleSocketServer by any chance?
Any idea if this is a "user" error or a problem with the SimpleSocketServer implementation? Any other SocketNode server implementation I could try out there?