Yes, all async logging, either with AsyncAppender or with Async Loggers will 
set `endOfBatch` to true on all events where the queue becomes empty. 

(Shameless plug) Every java main() method deserves http://picocli.info

> On Jan 10, 2018, at 19:17, Mikael Ståldal <[email protected]> wrote:
> 
> And the same applies to AsyncAppender, right?
> 
>> On 2018-01-10 00:14, Remko Popma wrote:
>> Log4j2 internally uses this with async logging: with async logging, the 
>> “producer” is the async logging queue. The queue “knows“ whether it’s empty 
>> or whether more events will follow immediately and it will set the 
>> `endOfBatch` attribute accordingly. Appenders downstream from the async 
>> logging queue will flush their buffer when they see the end of a batch.

Reply via email to