Fix numbering of levels

This commit is contained in:
Olivier Poitrey 2019-11-18 09:34:23 -08:00
parent e709c5d91e
commit 54e95fe699
1 changed files with 3 additions and 2 deletions

5
log.go
View File

@ -110,8 +110,6 @@ import (
type Level int8
const (
// TraceLevel defines trace log level.
TraceLevel Level = -1
// DebugLevel defines debug log level.
DebugLevel Level = iota
// InfoLevel defines info log level.
@ -128,6 +126,9 @@ const (
NoLevel
// Disabled disables the logger.
Disabled
// TraceLevel defines trace log level.
TraceLevel Level = -1
)
func (l Level) String() string {