OutputStreamAppender.java method writeBytes makes infinite lock of ReentrantLock lock. This is the reason of stagnation. Only process restart may help. At least this is the problem of logback-core version 1.2.3. Using of tryLock with some reasonable timeout is better - the current message will be lost, but the whole thread will not stuck. I hope this is fixed in the next version. |