Closed morugetsm closed 10 months ago
I might be wrong, but please make sure that _guard
is alive during whole program runtime. Once it's dropped, logging stopped working for me.
you are dropping the _guard
at the end of the block, which shuts down the writer. take a look at the documentation here: https://docs.rs/tracing-appender/latest/tracing_appender/non_blocking/struct.WorkerGuard.html.
Thank you for explaining the role of the WorkerGuard
that I wasn't aware of.
Bug Report
Version
Platform
Windows 11 but also occurs on linux (Ubuntu 20.04)
Description