mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-24 03:46:37 +02:00
801f89b6db
* rename Print to Log
14 lines
322 B
Go
14 lines
322 B
Go
package log
|
|
|
|
import "testing"
|
|
|
|
func TestStdLogger(t *testing.T) {
|
|
logger := DefaultLogger
|
|
logger = With(logger, "caller", DefaultCaller, "ts", DefaultTimestamp)
|
|
|
|
Debug(logger).Log("msg", "test debug")
|
|
Info(logger).Log("msg", "test info")
|
|
Warn(logger).Log("msg", "test warn")
|
|
Error(logger).Log("msg", "test error")
|
|
}
|