micro-logger-zerolog/README.md
2021-01-10 15:22:21 +03:00

17 lines
402 B
Markdown

# Zerolog
[Zerolog](https://github.com/rs/zerolog) logger implementation for __go-micro__ [meta logger](https://github.com/micro/go-micro/tree/master/logger).
## Usage
```go
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"}
}
```