添加打印到控制台的方法&添加设置时区
This commit is contained in:
+3
-1
@@ -20,7 +20,9 @@ func TestLogger(t *testing.T) {
|
||||
l := loggerx.NewLogger(
|
||||
context.Background(),
|
||||
loggerx.SetErrorToInfo(),
|
||||
loggerx.SetExtraDriver(b, Print{}),
|
||||
loggerx.SetToConsole(),
|
||||
loggerx.SetTimeZone(time.UTC),
|
||||
// loggerx.SetExtraDriver(b, Print{}),
|
||||
loggerx.SetFileSplit(loggerx.FileSplitTimeA),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user