mirror of
https://github.com/khorevaa/logos.git
synced 2025-01-22 05:10:53 +02:00
fix: console sep to space
This commit is contained in:
parent
080f244651
commit
7594509206
@ -13,7 +13,7 @@ var defaultTimestampFormat = "2006-01-02T15:04:05.000Z0700"
|
|||||||
var baseTimestamp = time.Now()
|
var baseTimestamp = time.Now()
|
||||||
|
|
||||||
var defaultConfig = Config{
|
var defaultConfig = Config{
|
||||||
ConsoleSeparator: "\t",
|
ConsoleSeparator: " ",
|
||||||
TimestampFormat: defaultTimestampFormat,
|
TimestampFormat: defaultTimestampFormat,
|
||||||
LineEnding: "\n",
|
LineEnding: "\n",
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,6 @@ package logos
|
|||||||
import (
|
import (
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
stdlog "log"
|
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -33,7 +32,7 @@ func TestNew(t *testing.T) {
|
|||||||
SetLevel(tt.logName, zap.DebugLevel)
|
SetLevel(tt.logName, zap.DebugLevel)
|
||||||
|
|
||||||
for _, text := range tt.text {
|
for _, text := range tt.text {
|
||||||
stdlog.Println(text)
|
//stdlog.Println(text)
|
||||||
log.Info(text)
|
log.Info(text)
|
||||||
log.Debug(text)
|
log.Debug(text)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user