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

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

Functions

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