Changes the name of log level constants
This commit is contained in:
parent
6978dc1288
commit
1d394253d9
2 changed files with 14 additions and 7 deletions
7
CHANGELOG.md
Normal file
7
CHANGELOG.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# go/logging
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
- Uncompatible change: log level names hace changed. They were fully
|
||||||
|
capitalized, only their first letter is capitalized now: DEBUG -> Debug,
|
||||||
|
INFO -> Info, etc.
|
14
logging.go
14
logging.go
|
@ -15,13 +15,13 @@ var (
|
||||||
type Level byte
|
type Level byte
|
||||||
|
|
||||||
const (
|
const (
|
||||||
DEBUG Level = iota
|
Debug Level = iota
|
||||||
INFO
|
Info
|
||||||
WARNING
|
Warning
|
||||||
ERROR
|
Error
|
||||||
CRITICAL
|
Critical
|
||||||
FATAL
|
Fatal
|
||||||
DEFAULT_LEVEL = INFO
|
DefaultLevel = Info
|
||||||
)
|
)
|
||||||
|
|
||||||
var levelNames = [6]string{"DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL", "FATAL"}
|
var levelNames = [6]string{"DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL", "FATAL"}
|
||||||
|
|
Loading…
Reference in a new issue