Browse Source

Add an example for Timezones::None

Sam Clements 3 years ago
parent
commit
8dad7548e1
1 changed files with 7 additions and 0 deletions
  1. 7 0
      examples/timestamps_none.rs

+ 7 - 0
examples/timestamps_none.rs

@@ -0,0 +1,7 @@
+use simple_logger::SimpleLogger;
+
+fn main() {
+    SimpleLogger::new().without_timestamps().init().unwrap();
+
+    log::warn!("This is an example message.");
+}