Skip to content

Commit

Permalink
Add an example of flushing the logger
Browse files Browse the repository at this point in the history
Resolves #33.
  • Loading branch information
borntyping committed Aug 21, 2022
1 parent fab6904 commit 80c236b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/flush.rs
@@ -0,0 +1,9 @@
use simple_logger::SimpleLogger;

fn main() {
SimpleLogger::new().init().unwrap();

log::warn!("This is an example message.");

log::logger().flush();
}

0 comments on commit 80c236b

Please sign in to comment.