Expand description
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::Builderfor 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.