estk / log4rs

A highly configurable logging framework for Rust
Apache License 2.0
973 stars 143 forks source link

Feature request logger filter #328

Closed EvilGiraffes closed 5 months ago

EvilGiraffes commented 7 months ago

It would be a really nice feature if you could have a filter which works on a logger instead of just on the appender.

it would allow for flexible log levels, currently using filters on each appender would still make log_enabled macro return true, when the global level is for example trace, but your appenders is thresholded to warn.

Main benefit would be able to have a runtime changable log level for a specific logger without reconfiguring.