I have a situation where I need to make sure that every call to
log::info! and the other logging macros blocks until the logs are flushed. I know that this is in general contrary to what you would want and less performant, but it is required for the environment I'm in. I need to know that the
log::info! call waits until the log is actually written before it continues.
Is there any way to make the log macro calls block until the log is flushed? I feel like this is probably outside of the intent of the
log crate and that I will need to implement something similar myself.
I'm using a custom logging implementation that uses a CLI to log messages to a program on the system.