Function simple_logger::init[][src]

pub fn init() -> Result<(), SetLoggerError>

Initializes the global logger with a SimpleLogger instance with max_log_level set to LogLevel::Trace.

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