mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-22 03:38:41 +02:00
d78eb3ee4b
* add level printer * fix helper args * fix test * Update README.md
10 lines
205 B
Go
10 lines
205 B
Go
package log
|
|
|
|
import "testing"
|
|
|
|
func TestValue(t *testing.T) {
|
|
logger := DefaultLogger
|
|
logger = With(logger, "ts", DefaultTimestamp, "caller", DefaultCaller)
|
|
logger.Log(LevelInfo, "msg", "helloworld")
|
|
}
|