Wait for async logger queue to empty (without shutdown) #3412
Answered
by
tt4g
yohayonyon
asked this question in
Q&A
|
Hi all, Calling flush() on an async logger only flushes the sinks, but doesn't wait for the queue to be fully processed by the background thread. Is there a way to block until the async queue is empty, without shutting down or stopping the logger? Thanks! |
Answered by
tt4g
Jun 5, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently not supported.
A PR that waits for asynchronous flushes has been merged (#3049), but there was a bug and it was reverted (#3235).