Go to file
2021-12-29 01:19:58 +03:00
.github update import paths 2021-10-28 00:52:30 +03:00
.gitignore add LICENSE 2021-01-10 15:39:57 +03:00
.synced update micro to v3.1.3 2021-01-19 23:05:03 +03:00
go.mod chore(deps): bump github.com/rs/zerolog from 1.26.0 to 1.26.1 2021-12-28 21:36:13 +00:00
go.sum chore(deps): bump github.com/rs/zerolog from 1.26.0 to 1.26.1 2021-12-28 21:36:13 +00:00
LICENSE add LICENSE 2021-01-10 15:39:57 +03:00
options.go update import paths 2021-10-28 00:52:30 +03:00
README.md use own fork 2021-01-10 15:34:37 +03:00
zerolog_test.go test for change output 2021-11-10 12:23:56 +03:00
zerolog.go update import paths 2021-10-28 00:52:30 +03: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"}
}