优化为json输出

This commit is contained in:
Yun
2024-02-03 01:57:56 +08:00
parent 1b61ac46e4
commit a08d268c92
4 changed files with 40 additions and 9 deletions
+2 -2
View File
@@ -17,9 +17,9 @@ func TestLogger(t *testing.T) {
l.Error(context.Background(), "test error")
l.Channel("test").Error(context.Background(), "test error")
l.Channel("channel").Error(context.Background(), "test error")
l.Info(context.Background(), "test info")
time.Sleep(time.Second * 2)
time.Sleep(time.Second * 5)
}