1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-24 03:46:37 +02:00
Tony Chen 18d43d6006
add logger wrapper (#715)
* add logger wrapper
2021-02-22 17:50:43 +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-22 17:50:43 +08:00
2021-02-22 17:50:43 +08:00
2021-02-17 17:14:47 +08:00
2021-02-17 17:14:47 +08:00
2021-02-22 17:50:43 +08:00
2021-02-22 17:50:43 +08:00
2021-02-22 17:50:43 +08:00
2021-02-22 17:50:43 +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")