kkawakam / rustyline

Readline Implementation in Rust
https://crates.io/crates/rustyline/
MIT License
1.5k stars 173 forks source link

Logging visible when using `env_logger` #774

Closed mcdearman closed 2 months ago

mcdearman commented 2 months ago

When I enable logging with env_logger I can see all of the rustyline logs. This wouldn't a problem if it didn't make it unusable. Can you hide those for the published crate?

gwenn commented 2 months ago

https://docs.rs/env_logger/latest/env_logger/#enabling-logging

By default all logging is disabled except for the error level

...

RUST_LOG=error,hello=off turn on global error logging, but turn off logging for hello

RUST_LOG=...,rustyline=off