tokio-rs / tracing

Application level tracing for Rust.
https://tracing.rs
MIT License
5.19k stars 677 forks source link

How to modify EnvFilter instead of replace #3025

Open wuanzhuan opened 3 weeks ago

wuanzhuan commented 3 weeks ago

in tracing_subscriber 0.3.18

I use a Envfilter in global subscriber. It is composed of one LevelFilter and Targets. When i modify the level filter, i need replace the entire EnvFilter. How do I only modify the LevelFilter in EnvFilter.