mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-22 03:38:41 +02:00
21557b38f6
* add log context & valuer
13 lines
258 B
Go
13 lines
258 B
Go
package log
|
|
|
|
import "testing"
|
|
|
|
func TestStdLogger(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")
|
|
}
|