Go to file
Sumanth Chinthagunta cf98ce105a fix(logger): fix module path for zerolog
fix typo for module path for zerolog, also updated deps to latest go-micro deps
2021-01-10 15:27:10 +03:00
go.mod fix(logger): fix module path for zerolog 2021-01-10 15:27:10 +03:00
go.sum feat(logger): remove replace in go.mod 2021-01-10 15:26:49 +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"}
}