From 5c12190a7d79ec12c32ca4fcd0089377bf8090a0 Mon Sep 17 00:00:00 2001 From: Hubert Grochowski Date: Thu, 5 Oct 2023 11:02:28 +0200 Subject: [PATCH] log/stdlog: log timestamp with microseconds resolution Fixes #454 --- log/stdlog/stdlog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log/stdlog/stdlog.go b/log/stdlog/stdlog.go index fe7cd1fd..8654a74f 100644 --- a/log/stdlog/stdlog.go +++ b/log/stdlog/stdlog.go @@ -27,7 +27,7 @@ func New(cfg *flog.Config) Logger { w = cfg.File } return Logger{ - log: log.New(w, "", log.Ldate|log.Ltime|log.LUTC), + log: log.New(w, "", log.Ldate|log.Ltime|log.Lmicroseconds|log.LUTC), level: cfg.Level, } }