[logback-user] Looking for details about AsyncAppender properties

David Roussel nabble at diroussel.xsmail.com
Sat May 22 21:32:32 CEST 2021


It’s been many years since I read the code. But I seem to remember it’s quite straight forward and just uses a java ArrayList, which will size itself dynamically. But you’d best just read it yourself. 

IMHO the lock usage in the blocking queue isn’t great and could be more efficient. But it does the job, and by not blocking on network IO it’s always given me a good speed up. 

In the last project where is used logback I turned it on by default at the begging of the project because it was such a clear win based on my past experience. 

The default settings are fine. Setting a very high limit would only be justified if you have a lot of memory and are expecting to have occasional very slow periods of IO. 

But given you are writing to stdout, this will depend on the behaviour of the log stream consumer abs how much buffering it does. 

I would expect any decent logging adapter to be built to cope with network interruptions and buffer accordingly. 

Dave


More information about the logback-user mailing list