Closed d4h0 closed 10 months ago
A PR to update this would be welcome - only the RUST_LOG=info
style is supported. (There are no plans to add the same filtering capabilities as env_logger
provides.)
SimpleLogger::with_module_level already exists, adding support for RUST_LOG
based filtering seems trivial
why is it not planned ?
I added a notice to the project recently that covers this: https://github.com/borntyping/rust-simple_logger#project-status
In short - no features have been planned for this library for the better part of a decade. I keep up with bugfixes and merge contributed features that fit the project's goal of being simple, but I'm not interested in doing much more than that as I don't use the project myself.
If there's truely a trivial implementation for this, I'd welcome a pull request :)
i don't know if the code is simple enough but i created #89 anyway
The docs of SimpleLogger::env say "Simulates env_logger behavior", but this doesn't seem to be true.
The docs of
env_logger
mention "Logging is controlled via the RUST_LOG environment variable. The value of this environment variable is a comma-separated list of logging directives.", but comma-seperated logging directives are not supported insimple_logger
:PS: Thanks for creating
simple_logger
. I like it quite a lot, and use it for all projects for which thetracing
crate would be over-kill.