1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-16 09:48:28 +02:00
Files
kratos/log
chenzhihui 3566386a89 init v2
2021-02-17 17:14:47 +08:00
..
2021-02-17 17:14:47 +08:00
2021-02-17 17:14:47 +08:00
2021-02-17 17:14:47 +08:00
2021-02-17 17:14:47 +08:00
2021-02-17 17:14:47 +08:00
2021-02-17 17:14:47 +08:00
2021-02-17 17:14:47 +08:00
2021-02-17 17:14:47 +08:00
2021-02-17 17:14:47 +08:00

Log

Usage

Structured logging

logger := stdlog.NewLogger(stdlog.Writer(os.Stdout))
log := log.NewHelper("module_name", logger)
// Levels
log.Info("some log")
log.Infof("format %s", "some log")
log.Infow("field_name", "some log")