Function env_logger::init_from_env [] [src]

pub fn init_from_env(env: &str)

Initializes the global logger with an env logger from the given environment variable.

This should be called early in the execution of a Rust program. Any log events that occur before initialization will be ignored.

Panics

This function will panic if it is called more than once, or if another library has already initialized a global logger.