Browse Source

Add an example for Timezones::None

Sam Clements 3 năm trước cách đây
mục cha
commit
8dad7548e1
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  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.");
+}