mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-12 08:23:58 +02:00
.. | ||
go.mod | ||
go.sum | ||
options.go | ||
README.md | ||
zerolog_test.go | ||
zerolog.go |
Zerolog
Zerolog logger implementation for go-micro meta logger.
Usage
func ExampleWithOut() {
logger.DefaultLogger = zerolog.NewLogger(logger.WithOutput(os.Stdout), logger.WithLevel(logger.DebugLevel))
logger.Infof(logger.InfoLevel, "testing: %s", "Infof")
// Output:
// {"level":"info","message":"testing: Infof"}
}