You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kratos/log/std_test.go

18 lines
452 B

4 years ago
package log
import "testing"
func TestStdLogger(_ *testing.T) {
logger := DefaultLogger
logger = With(logger, "caller", DefaultCaller, "ts", DefaultTimestamp)
4 years ago
_ = logger.Log(LevelInfo, "msg", "test debug")
_ = logger.Log(LevelInfo, "msg", "test info")
_ = logger.Log(LevelInfo, "msg", "test warn")
_ = logger.Log(LevelInfo, "msg", "test error")
_ = logger.Log(LevelDebug, "singular")
logger2 := DefaultLogger
_ = logger2.Log(LevelDebug)
4 years ago
}