[][src]Function easyenv::init_env_logger

pub fn init_env_logger(default_if_absent: Option<&str>)

Initialize Rust's env logger.

The Rust logger reads the desired log level from the RUST_LOG environment variable. If this isn't set, the provided default is used. If a default fallback isn't provided to this function, we fall back to "info".

A more robust logging config might configure on a per-component basis, eg. "tokio_reactor=warn,hyper=info,debug". You can read more in the log and env_logger crate docs.