mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-26 13:41:33 +00:00
common/log: Switch to RFC3339 format with nanoseconds and trailing zeros
This commit is contained in:
parent
e8d2d61cc2
commit
254e61f727
@ -11,7 +11,7 @@ import (
|
|||||||
// SetupLogging configures the logging format and destination(s).
|
// SetupLogging configures the logging format and destination(s).
|
||||||
func SetupLogging(logDir string) {
|
func SetupLogging(logDir string) {
|
||||||
formatter := &logrus.TextFormatter{
|
formatter := &logrus.TextFormatter{
|
||||||
TimestampFormat: "2006-01-02 15:04:05.000000",
|
TimestampFormat: "2006-01-02T15:04:05.000000000Z07:00",
|
||||||
DisableColors: true,
|
DisableColors: true,
|
||||||
DisableTimestamp: false,
|
DisableTimestamp: false,
|
||||||
DisableSorting: false,
|
DisableSorting: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user