Go to file
2021-01-10 15:26:23 +03:00
go.mod refactor(logger): logger fields changed to map[string]interface{} 2021-01-10 15:26:23 +03:00
go.sum refactor(logger): logger fields changed to map[string]interface{} 2021-01-10 15:26:23 +03:00
options.go refactor(logger): logger fields changed to map[string]interface{} 2021-01-10 15:26:23 +03:00
README.md feat(logger): adding zerolog implementation 2021-01-10 15:22:21 +03:00
zerolog_test.go refactor(logger): logger fields changed to map[string]interface{} 2021-01-10 15:26:23 +03:00
zerolog.go refactor(logger): logger fields changed to map[string]interface{} 2021-01-10 15:26:23 +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"}
}