<div dir="ltr">Hi,
<div><br></div><div style>I've got some issues while using Socket to send logs to a central repository. When the logs generated from client side is slow, everything works fine. However, if the logs from client side is very fast, it looks like logs entries will be dropped significantly during transmit.</div>
<div style><br></div><div style>I did an experiment to confirm it:</div><div style><div>        int i = 0 ;</div><div>        while (i < 10000) {</div><div>            <a href="http://log.info">log.info</a>(i + " : =======");</div>
<div>            i ++;</div><div>        }</div><div><br></div><div style>And on the sever side, the received log looks like:</div><div style><div>2013-09-12 17:59:09,174 INFO  [main]  - 0 : =======</div><div>2013-09-12 17:59:09,175 INFO  [main]  - 5 : =======</div>
<div>2013-09-12 17:59:09,175 INFO  [main]  - 10 : =======</div><div>2013-09-12 17:59:09,176 INFO  [main]  - 13 : =======</div><div>2013-09-12 17:59:09,177 INFO  [main]  - 17 : =======</div><div>2013-09-12 17:59:09,178 INFO  [main]  - 21 : =======</div>
<div><br></div><div style>Is there any way to avoid this from happening? What I have read from doc is logback is based on TCP so eventual consistency should be able to achieved, or may be my understanding is not correct?</div>
<div style><br></div><div style>Thanks if anyone can give me some hint.</div><div style><br></div><div style>Regards,</div><div style>Yudong</div></div></div></div>