Closed quadrupleslap closed 6 years ago
Yea that would be nice! Because I want people who use my library use a library specific env variable to active the logging like "RR_LOG"
The workaround for now is:
let mut lb = env_logger::LogBuilder::new();
if let Ok(log_config) = env::var("MC_LOG") {
lb.parse(&log_config);
}
lb.init()
env_logger has moved out of tree.
For
env_logger
, maybe keep the default asRUST_LOG
and allow the users to change it as a config option? For example, I might want people to use MC_LOG to change the log level of my Minecraft clone.