libs/log: [JSON format] include timestamp (#6174)

Closes #6146
This commit is contained in:
Anton Kaliaev
2021-02-25 11:06:24 +04:00
committed by GitHub
parent e9e5026dac
commit fc5a108d53
5 changed files with 16 additions and 6 deletions

View File

@@ -15,7 +15,7 @@ const (
func TestParseLogLevel(t *testing.T) {
var buf bytes.Buffer
jsonLogger := log.NewTMJSONLogger(&buf)
jsonLogger := log.NewTMJSONLoggerNoTS(&buf)
correctLogLevels := []struct {
lvl string