1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00
go-micro/plugins/logger/zerolog
2020-12-26 15:32:45 +00:00
..
go.mod add all the plugins 2020-12-26 15:32:45 +00:00
go.sum add all the plugins 2020-12-26 15:32:45 +00:00
options.go add all the plugins 2020-12-26 15:32:45 +00:00
README.md add all the plugins 2020-12-26 15:32:45 +00:00
zerolog_test.go add all the plugins 2020-12-26 15:32:45 +00:00
zerolog.go add all the plugins 2020-12-26 15:32:45 +00:00

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"}
}