mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-07 23:02:12 +02:00
.. | ||
helper_test.go | ||
helper.go | ||
level.go | ||
log_test.go | ||
log.go | ||
README.md | ||
std_test.go | ||
std.go | ||
value_test.go | ||
value.go | ||
verbose_test.go | ||
verbose.go |
Log
Usage
Structured logging
logger := log.NewLogger(os.Stdout)
logger = With(logger, "key", "value")
log := log.NewHelper("github.com/project/foo", logger)
// Levels
log.Info("hello")
log.Infof("hello %s", "kratos")
log.Infow("key", "value")