Skip to content

flush() not working as expected #2982

Answered by tt4g
kaushal02 asked this question in Q&A
Jan 17, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

The async logger is also asynchronous for flush operations.
The caller does not receive notification of flush completion.

See also: #1696

EDIT: FileLogger::FlushSink() is a synchronous operation, but if it is called before the log message reaches sink, there is no log to flush.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kaushal02
Comment options

@tt4g
Comment options

Answer selected by kaushal02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants