After a bit of a struggle with @rustlang's logging libs, I got rid of slog to use the simpler loggerv for my CLI https://github.com/clux/loggerv/blob/f14918e38ee60d76aeba2819ead168339df3d389/examples/clap.rs …
I'm glad they mention it's meant for CLIs in the README. Global (or even thread local) loggers for libs are 
-
-
tbh, I still don’t know the current best practices regarding logging, but I refuse to believe it needs 4 crates and 50 lines
-
info!(logger, "some_format {}", args) is all I want. The key thing being that the logger is passed directly
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.