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§
- Returns a
env_logger::Builder
for further customization. - Initializes the global logger with an emoji logger.
- Initialized the global logger with an emoji logger, with a custom variable name.
- Initializes the global logger with an emoji logger.
- Initialized the global logger with an emoji logger, with a custom variable name.