Fix numbering of levels
This commit is contained in:
parent
e709c5d91e
commit
54e95fe699
5
log.go
5
log.go
|
@ -110,8 +110,6 @@ import (
|
||||||
type Level int8
|
type Level int8
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// TraceLevel defines trace log level.
|
|
||||||
TraceLevel Level = -1
|
|
||||||
// DebugLevel defines debug log level.
|
// DebugLevel defines debug log level.
|
||||||
DebugLevel Level = iota
|
DebugLevel Level = iota
|
||||||
// InfoLevel defines info log level.
|
// InfoLevel defines info log level.
|
||||||
|
@ -128,6 +126,9 @@ const (
|
||||||
NoLevel
|
NoLevel
|
||||||
// Disabled disables the logger.
|
// Disabled disables the logger.
|
||||||
Disabled
|
Disabled
|
||||||
|
|
||||||
|
// TraceLevel defines trace log level.
|
||||||
|
TraceLevel Level = -1
|
||||||
)
|
)
|
||||||
|
|
||||||
func (l Level) String() string {
|
func (l Level) String() string {
|
||||||
|
|
Loading…
Reference in New Issue