Crate emoji_logger[][src]

A logger configured via an environment variable which writes cancer to standard error with colored output for log levels.

Example

extern crate emoji_logger;
#[macro_use] extern crate log;

fn main() {
    emoji_logger::init();

    trace!("this is trace level");
    debug!("mom get the rubber duck");
    info!("heck, our disk is full of logs again...");
    warn!("should we worry");
    error!("pls help");
}

Functions

formatted_builder

Returns a env_logger::Builder for further customization.

init

Initializes the global logger with an emoji logger.

init_custom_env

Initialized the global logger with an emoji logger, with a custom variable name.

try_init

Initializes the global logger with an emoji logger.

try_init_custom_env

Initialized the global logger with an emoji logger, with a custom variable name.