From 3ec1a836861d1a36dcf982927eccb33e112eaa53 Mon Sep 17 00:00:00 2001 From: a Date: Sat, 17 Sep 2022 11:56:02 -0500 Subject: [PATCH] chjange default time format --- log/log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log/log.go b/log/log.go index a16150b..05ff921 100644 --- a/log/log.go +++ b/log/log.go @@ -15,7 +15,7 @@ import ( var Logger = zlog.New(os.Stderr).With().Timestamp().Logger() func init() { - zlog.TimeFieldFormat = time.RFC3339Nano + zlog.TimeFieldFormat = time.StampMicro } // Output duplicates the global logger and sets w as its output.