添加打印到控制台的方法&添加设置时区

This commit is contained in:
Yun
2024-06-20 23:59:13 +08:00
parent 791a08b77a
commit bcd576e400
3 changed files with 26 additions and 11 deletions
+3 -1
View File
@@ -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),
)