初步完成&测试可用

This commit is contained in:
Yun
2024-01-23 00:12:08 +08:00
parent fc485d8670
commit 10ecbce64f
6 changed files with 148 additions and 78 deletions
+5 -1
View File
@@ -12,8 +12,12 @@ import (
func TestLogger(t *testing.T) {
l := loggerx.InitLogger("profix")
l := loggerx.NewLogger(loggerx.SetErrorToInfo())
l.Error(context.Background(), "test error")
l.Channel("test").Error(context.Background(), "test error")
l.Info(context.Background(), "test info")
}