From b50071ed37bdbca545f5f47f2a799121ad983f49 Mon Sep 17 00:00:00 2001 From: Skyxim Date: Wed, 15 Feb 2023 22:39:28 +0800 Subject: [PATCH] chore: better log time --- log/log.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/log/log.go b/log/log.go index f1053f44..acddeaff 100644 --- a/log/log.go +++ b/log/log.go @@ -18,6 +18,10 @@ var ( func init() { log.SetOutput(os.Stdout) log.SetLevel(log.DebugLevel) + log.SetFormatter(&log.TextFormatter{ + FullTimestamp: true, + TimestampFormat: "2006-01-02T15:04:05.999999999Z07:00", + }) } type Event struct {