[−][src]Function simple_logger::init_by_env
pub fn init_by_env()
A macro for simulating env_logger behavior, which enables the user to choose log level by
setting a RUST_LOG
environment variable. The RUST_LOG
is not set or its value is not
recognized as one of the log levels, this function with use the Error
level by default.
simple_logger::init_by_env(); warn!("This is an example message.");