rust-cli / env_logger

A logging implementation for `log` which is configured via an environment variable.
https://docs.rs/env_logger
Apache License 2.0
803 stars 125 forks source link

Override existing directives when parsing #199

Closed BramBonne closed 3 years ago

BramBonne commented 3 years ago

This should work as a minimal fix for #196.

Let me know if you would like filter::Builder::filter() to behave in the same way (i.e., removing existing directives with the same name). Also, please let me know if this fix doesn't make sense -- I'm not familiar with this code, and even just starting out with Rust as well.

mainrs commented 3 years ago

DON'T merge until it is decided which PR should get into master (#199 or #200).

jplatte commented 3 years ago

200 was merged.