From 7594509206a4c269e850fbd376d14ae8e87cf8b4 Mon Sep 17 00:00:00 2001 From: khorevaa Date: Mon, 1 Feb 2021 18:44:38 +0300 Subject: [PATCH] fix: console sep to space --- encoder/console/console.go | 2 +- logos_test.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/encoder/console/console.go b/encoder/console/console.go index 6120166..4f9bf2b 100644 --- a/encoder/console/console.go +++ b/encoder/console/console.go @@ -13,7 +13,7 @@ var defaultTimestampFormat = "2006-01-02T15:04:05.000Z0700" var baseTimestamp = time.Now() var defaultConfig = Config{ - ConsoleSeparator: "\t", + ConsoleSeparator: " ", TimestampFormat: defaultTimestampFormat, LineEnding: "\n", } diff --git a/logos_test.go b/logos_test.go index 1ca8da6..9822589 100644 --- a/logos_test.go +++ b/logos_test.go @@ -3,7 +3,6 @@ package logos import ( "github.com/stretchr/testify/assert" "go.uber.org/zap" - stdlog "log" "testing" ) @@ -33,7 +32,7 @@ func TestNew(t *testing.T) { SetLevel(tt.logName, zap.DebugLevel) for _, text := range tt.text { - stdlog.Println(text) + //stdlog.Println(text) log.Info(text) log.Debug(text) }