Note that there are some explanatory texts on larger screens.

plurals
  1. POMissing log entries by using SocketAppender of logback
    text
    copied!<p>I'm using Logback SSLSocketAppender to direct logs into a central logger server. The application is running ok, and I can see the logs being received on the server side.</p> <p>However, a close look at the logs, usually out of every 5 log entries, there is 1 or 2 dropped . According to <a href="http://logback.qos.ch/manual/appenders.html" rel="nofollow">Logback Doc</a>, TCP protocol should guarantee an eventual consistency of the logs, but not in my case.</p> <blockquote> <p>SocketAppender operates above the Transmission Control Protocol (TCP) layer which provides a reliable, sequenced, flow-controlled end-to-end octet stream. Consequently, if the remote server is reachable, then log events will eventually arrive there. Otherwise, if the remote server is down or unreachable, the logging events will simply be dropped. If and when the server comes back up, then event transmission will be resumed transparently. This transparent reconnection is performed by a connector thread which periodically attempts to connect to the server.</p> </blockquote> <p>Wondering anyone had similar issues before?</p> <p>Thanks!</p> <p>----- Edit -----</p> <p>I did an experiment to confirm it:</p> <pre><code>int i = 0 ; while (i &lt; 10000) { log.info(i + " : ======="); i ++; } </code></pre> <p>And on the sever side, the received log looks like:</p> <pre><code>2013-09-12 17:59:09,174 INFO [main] - 0 : ======= 2013-09-12 17:59:09,175 INFO [main] - 5 : ======= 2013-09-12 17:59:09,175 INFO [main] - 10 : ======= 2013-09-12 17:59:09,176 INFO [main] - 13 : ======= 2013-09-12 17:59:09,177 INFO [main] - 17 : ======= 2013-09-12 17:59:09,178 INFO [main] - 21 : ======= </code></pre> <p>And If I try it a second time, the logged message will be different.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload