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