1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-14 02:33:03 +02:00
kratos/log/log_test.go
2022-07-14 20:20:38 +08:00

18 lines
324 B
Go

package log
import (
"context"
"testing"
)
func TestInfo(t *testing.T) {
logger := DefaultLogger
logger = With(logger, "ts", DefaultTimestamp)
logger = With(logger, "caller", DefaultCaller)
_ = logger.Log(LevelInfo, "key1", "value1")
}
func TestWithContext(t *testing.T) {
WithContext(context.Background(), nil)
}