Sfoglia il codice sorgente

Add an example for Timezones::None

Sam Clements 3 anni fa
parent
commit
8dad7548e1
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  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.");
+}