Closed sbreatnach closed 2 years ago
Yes! Please make sure you have the feature flags set correctly to enable/disable trace logging.
This has bitten me a number of times (even in the same codebase). It's definitely not an uncommon problem even for contributors 😉
If you still encounter this problem after fixing 5hr appropriate feature flags, please leave a comment and we'll reopen this :)
It was a bad idea. :D
I was thinking if we could deprecate or something.
I've tried a few different ways to get log output via the
slog_trace!
macro using aslog_envlogger
drain but nothing is coming through. This can be reproduced with the following project files:Cargo.toml
src/main.rs (adapted from https://github.com/slog-rs/envlogger/blob/master/examples/proper.rs)
Using
cargo 1.57.0 (b2e52d7ca 2021-10-21)
, I build and run withenv RUST_LOG=trace cargo run
. All output will appear as expected, except for "slog trace".Is there something I'm missing, some configuration option that's required?