Drakulix / simplelog.rs

Simple Logging Facility for Rust
https://docs.rs/simplelog/
Apache License 2.0
414 stars 71 forks source link

Updating filters after initialization #124

Open naturecodevoid opened 1 year ago

naturecodevoid commented 1 year ago

Would it be possible to update the allow/ignore filters after initialization? This would be really nice for turning off/on debug logs.

Another option would be to add a config option for a filter closure, which would take the log record and return a bool of if it should be logged or not.

Setting log levels per target/module/crate would also be a very nice feature.