Files
loggerx/loggerx_test.go
T
2024-01-23 00:12:08 +08:00

24 lines
362 B
Go

package loggerx_test
import (
"context"
"testing"
"code.yun.ink/pkg/loggerx"
)
// func TestMain(m *testing.M) {
// }
func TestLogger(t *testing.T) {
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")
}