flush.rs 165 B

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