diff --git a/common/log/logger.go b/common/log/logger.go index d964a212..7c100aa1 100644 --- a/common/log/logger.go +++ b/common/log/logger.go @@ -146,7 +146,7 @@ func (w *fileLogWriter) Close() error { func CreateStdoutLogWriter() WriterCreator { return func() Writer { return &consoleLogWriter{ - logger: log.New(os.Stdout, "", log.Ldate|log.Ltime), + logger: log.New(os.Stdout, "", log.Ldate|log.Ltime|log.Lmicroseconds), } } } @@ -155,7 +155,7 @@ func CreateStdoutLogWriter() WriterCreator { func CreateStderrLogWriter() WriterCreator { return func() Writer { return &consoleLogWriter{ - logger: log.New(os.Stderr, "", log.Ldate|log.Ltime), + logger: log.New(os.Stderr, "", log.Ldate|log.Ltime|log.Lmicroseconds), } } } @@ -174,7 +174,7 @@ func CreateFileLogWriter(path string) (WriterCreator, error) { } return &fileLogWriter{ file: file, - logger: log.New(file, "", log.Ldate|log.Ltime), + logger: log.New(file, "", log.Ldate|log.Ltime|log.Lmicroseconds), } }, nil }