添加日志文件切分规则

This commit is contained in:
DESKT-DMCDGMMAS\Administrator
2024-05-08 16:33:58 +08:00
parent 328dadb308
commit 96c3c4c329
3 changed files with 56 additions and 6 deletions
+1
View File
@@ -21,6 +21,7 @@ func TestLogger(t *testing.T) {
context.Background(),
loggerx.SetErrorToInfo(),
loggerx.SetExtraDriver(b, Print{}),
loggerx.SetFileSplit(loggerx.FileSplitTimeA),
)
l.Error(context.Background(), "test error")