Explorar el Código

Add an example for Timezones::None

Sam Clements hace 3 años
padre
commit
8dad7548e1
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  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.");
+}