mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-26 03:52:12 +02:00
18d43d6006
* add logger wrapper
14 lines
259 B
Go
14 lines
259 B
Go
package log
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestLogger(t *testing.T) {
|
|
logger := DefaultLogger
|
|
Debug(logger).Print("log", "test debug")
|
|
Info(logger).Print("log", "test info")
|
|
Warn(logger).Print("log", "test warn")
|
|
Error(logger).Print("log", "test error")
|
|
}
|