Hi all,

Recently I have been trying to implement a centralised loggin server using 
slf4j with Logback.
To try and understand how the receiver architecture works, I set up two java 
applications built with maven. One (Client) creates logs and sends them via 
ch.qos.logback.classic.net.SocketAppender to the second (Server) receiving with 
a ch.qos.logback.classic.net.server.ServerSocketReceiver. The problem I have 
encountered is that the logs sent from the client are not displayed by the 
Server's appenders. I have used a packet sniffer to confirm that the packets 
are indeed send and received. I have also tried changing the receiver and 
socket layout i.e SocketAppender -> ServerSocketAppender and 
ServerSocketReceiver -> SocketReceiver but got the same results. When nothing I 
was trying worked I tried using the examples given in the Logback documentation 
exactly but again, got the same result.

Finally I tried sending logs via Log4j 2 (Log4j 2 Socket Appender -> Logback 
ServerSocketReceiver) but again no luck. The connect was established between 
appender and receiver in each test before logs began to send.

I would like to also note that any logs local to the applications are displayed 
perfectly by their respected appenders. Any help with this problem would be 
greatly appreciated.
Kind regards,
Adam.

_______________________________________________
logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user

Reply via email to