proxy.golang.org : github.com/go-logr/zerologr : v1.2.3
Package zerologr defines an implementation of the github.com/go-logr/logr interfaces built on top of Zerolog (https://github.com/rs/zerolog). A new logr.Logger can be constructed from an existing zerolog.Logger using the New function: For the most part, concepts in Zerolog correspond directly with those in logr. V-levels in logr correspond to levels in Zerolog as `zerologLevel = 1 - logrV`. `logr.V(0)` is equivalent to `zerolog.InfoLevel` or 1; `logr.V(1)` is equivalent to `zerolog.DebugLevel` or 0 (default global level in Zerolog); `logr.V(2)` is equivalent to `zerolog.TraceLevel` or -1. Higher than 2 V-level is possible but misses some features in Zerolog, e.g. Hooks and Sampling. V-level value is a number and is only logged on Info(), not Error().
Registry -
Documentation -
Download -
JSON -
codemeta.json
purl: pkg:golang/github.com/go-logr/zerologr@v1.2.3
Published:
Indexed:
Related tag:
v1.2.3
- github.com/go-logr/logr v1.2.3
- github.com/mattn/go-colorable v0.1.12
- github.com/mattn/go-isatty v0.0.14
- github.com/rs/zerolog v1.29.0
- golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6