clux / loggerv

A minimalistic stdout/stderr logger for rust
https://docs.rs/loggerv
MIT License
21 stars 6 forks source link

basic module path filters #17

Closed jpastuszek closed 5 years ago

jpastuszek commented 5 years ago

This change adds a basic module path filters that when used only allow printing of selected module prefixes logs. Perhaps full RUST_LOG support would be better but this at least makes this logger usable with programs that use libraries that log on debug and trace levels by default (like rusoto_s3).

Also full support for log levels per module path can be added later by parsing filters without = as defaulting to default log level.