[logback-user] Logs from Receiver not being displayed by Appenders

ULStudent:ADAM.O'MAHONY 16187504 at studentmail.ul.ie
Wed May 29 11:52:07 CEST 2019

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,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20190529/c08987bd/attachment.html>

More information about the logback-user mailing list