初步完成&测试可用
This commit is contained in:
+5
-1
@@ -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")
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user