Go to file
Vasiliy Tolstov 7f6902c2d4 update go-micro and micro to v2.9.1
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-10 15:32:54 +03:00
go.mod update go-micro and micro to v2.9.1 2021-01-10 15:32:54 +03:00
go.sum update go-micro to v2.5.0 2021-01-10 15:32:29 +03:00
options.go loggers updated to match to interface (#480) 2021-01-10 15:30:55 +03:00
README.md feat(logger): adding zerolog implementation 2021-01-10 15:22:21 +03:00
zerolog_test.go bump go-micro and micro to v2.3.0 (#510) 2021-01-10 15:32:10 +03:00
zerolog.go fix(#487): set CallerSkipFrameCount (#488) 2021-01-10 15:32:42 +03:00

Zerolog

Zerolog logger implementation for go-micro meta logger.

Usage

func ExampleWithOut() {
  l := zero.NewLogger(zero.WithOut(os.Stdout), zero.WithLevel(logger.DebugLevel))

  l.Logf(logger.InfoLevel, "testing: %s", "logf")

  // Output:
  // {"level":"info","message":"testing: logf"}
}