From 8dad7548e1bbafe618b4f1548185402cd5a018d2 Mon Sep 17 00:00:00 2001 From: Sam Clements Date: Wed, 19 Jan 2022 18:03:14 +0000 Subject: [PATCH] Add an example for Timezones::None --- examples/timestamps_none.rs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 examples/timestamps_none.rs diff --git a/examples/timestamps_none.rs b/examples/timestamps_none.rs new file mode 100644 index 0000000..9f7b98d --- /dev/null +++ b/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."); +}