init.rs 137 B

1234567
  1. use simple_logger::SimpleLogger;
  2. fn main() {
  3. SimpleLogger::new().init().unwrap();
  4. log::warn!("This is an example message.");
  5. }