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 …
-
-
Replying to @killercup
I'm glad they mention it's meant for CLIs in the README. Global (or even thread local) loggers for libs are
1 reply 0 retweets 0 likes -
Replying to @sgrif
tbh, I still don’t know the current best practices regarding logging, but I refuse to believe it needs 4 crates and 50 lines
1 reply 0 retweets 0 likes
Replying to @killercup
info!(logger, "some_format {}", args) is all I want. The key thing being that the logger is passed directly
3:14 PM - 19 Mar 2017
0 replies
0 retweets
0 likes
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.