You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make UTC the default timestamps option, and change the output format to include the timezone
This works around the issue of potentially silently changing the
timezone used in logfiles (and not leaving the user any way to notice
the change) by changing the timezone format used from one that is
timezone agnostic to one that includes the timezone.
Since it's alreday changing from one that perfectly matches Supervisord,
this uses the well known RFC 3339 format that implements ISO 8601 (and
happens to currently be the only format provided by the `time` crate
that I don't have to implement myself).
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,17 @@
2
2
3
3
A logger that prints all messages with a readable output format.
4
4
5
-
The output format is based on the format used by [Supervisord](http://supervisord.org/).
5
+
The output format is based on the format used by [Supervisord](http://supervisord.org/), with timestamps in [RFC 3339](https://datatracker.ietf.org/doc/html/rfc3339) format.
6
6
7
7
*[Source on GitHub](https://github.com/borntyping/rust-simple_logger)
8
8
*[Packages on Crates.io](https://crates.io/crates/simple_logger)
9
9
*[Documentation on Docs.rs](https://docs.rs/simple_logger)
10
10
11
+
Breaking changes
12
+
----------------
13
+
14
+
-**Version 2.0.0 changes the default from displaying timestamps in the local timezone to displaying timestamps in UTC.** See issue [#52](https://github.com/borntyping/rust-simple_logger/issues/52) for more information.
15
+
11
16
Usage
12
17
-----
13
18
@@ -24,7 +29,7 @@ fn main() {
24
29
This outputs:
25
30
26
31
```
27
-
2015-02-24 01:05:20 WARN [logging_example] This is an example message.
32
+
2022-01-19T17:27:07.013874956Z WARN [logging_example] This is an example message.
0 commit comments