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§
Functions§
- init
- Initialise the logger with its default configuration.
- init_
with_ level - Initialise the logger with a specific log level.