Closed moranbw closed 11 months ago
having a quick look into flexi_loggers source code tells me that the only thing in that crate that implements the Log trait is the private struct FlexiLogger, so unless that get exposed publicly the crates are not compatible. Maybe file an issue against flexi_logger.
additionally it would have the issue of suspending output on the terminal even if some lines are only written to a file, not the terminal.
if you are building a complex user interface on the terminal maybe a tui-crate is also an option.
Thanks for the response! It's a pretty simple CLI app, so a TUI may be overkill. Will investigate other log crates to see if something is more compatible.
Is this compatible with flexi_logger?
I try to use it like this:
I'm getting the following error:
I also tried to separate out the flexi_logger call of .start() so that I had a
Logger
rather thanLoggerHandle
, but that did not seem to help. Any guidance is greatly appreciated!