You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the most part, concepts in Zerolog correspond directly with those in logr.
36
38
37
-
Levels in logr correspond to custom debug levels in Zerolog. Any given level
38
-
in logr is represents by `zerologLevel = 1 - logrLevel`.
39
-
40
-
For example `V(2)` is equivalent to Zerolog's `TraceLevel`, while `V(1)` is
41
-
equivalent to Zerolog's `DebugLevel`.
39
+
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().
0 commit comments