Crate ic_logger

Crate ic_logger 

Source
Expand description

A logger that prints all messages with a simple, readable output format.

Just initialize logging without any configuration:

ic_logger::init().unwrap();
log::warn!("This is an example message.");

Hardcode a default log level:

ic_logger::init_with_level(log::Level::Warn).unwrap();

Structs§

IcLogger
Implements Log and a set of simple builder methods for configuration.

Functions§

init
Initialise the logger with its default configuration.
init_with_level
Initialise the logger with a specific log level.