Skip to content

Commit

Permalink
Merge pull request #39 from thockin/master
Browse files Browse the repository at this point in the history
Better docs on negative levels
  • Loading branch information
thockin committed Aug 9, 2021
2 parents e743f8a + ca5062c commit a332506
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ the number gets larger (`DebugLevel` is -1, `InfoLevel` is 0, `WarnLevel` is 1,
and so on).

The `-2` in the above snippet means that `log.V(2).Info()` calls will be active.
`-3` would enable `log.V(3).Info()`, etc.
`-3` would enable `log.V(3).Info()`, etc. Note that zap's levels are `int8`
which means the most verbose level you can give it is -128. The zapr
implementation will cap `V()` levels greater than 127 to 127, so setting the
zap level to -128 really means "activate all logs".

Implementation Details
----------------------
Expand Down

0 comments on commit a332506

Please sign in to comment.