From 843f0e25e35cfbecb25734e3559b6e23e5f1fb97 Mon Sep 17 00:00:00 2001 From: Author negativeOne1 Date: Thu, 24 Jan 2019 11:57:08 +0100 Subject: [PATCH] Timestamps with higher precision --- formatter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/formatter.go b/formatter.go index 9d36f4b..23a6f09 100644 --- a/formatter.go +++ b/formatter.go @@ -143,7 +143,7 @@ func (f *Formatter) Format(e *logrus.Entry) ([]byte, error) { } if !skipTimestamp { - ee.Timestamp = time.Now().UTC().Format(time.RFC3339) + ee.Timestamp = time.Now().UTC().Format(time.RFC3339Nano) } switch severity {