Files
gerrit/java
Sven Selberg a46c81ef36 Make log timestamps ISO8601 and RFC3339 compliant
ISO8601 compliant timestamps were added with:
31037d3 - "Use ISO 8601 timestamp format for error/httpd/sshd logs"

Some logging frameworks (like ES beats) does not support ISO8601 but
does support RFC3339. By complying to both standards we make the life
of Gerrit admins much easier.

The current timeformat for timestamps in json-logs is:
  "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
This results in a timestamp that is ISO8601 compliant:
  2020-09-10T16:21:13.571+0200

However RFC3339 does only allows timezones in the format:
  ("+" / "-") time-hour ":" time-minute [1]

By changing the zone part of the timeformat:
  "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"
We will get a timestamp like:
  2020-09-10T16:21:13.571+02:00
This complies with both RFC3339 and ISO8601 since ISO8601 allows:
  ("+" / "-") time-hour [[":"] time-minute]

[1] https://tools.ietf.org/html/rfc3339

Change-Id: I5b56c5871215f8753e8b25e7664ed078461d5a00
2020-09-16 17:37:33 +02:00
..
2020-07-29 13:05:45 +02:00