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
|
||||
|
||||
const (
|
||||
DEBUG Level = iota
|
||||
INFO
|
||||
WARNING
|
||||
ERROR
|
||||
CRITICAL
|
||||
FATAL
|
||||
DEFAULT_LEVEL = INFO
|
||||
Debug Level = iota
|
||||
Info
|
||||
Warning
|
||||
Error
|
||||
Critical
|
||||
Fatal
|
||||
DefaultLevel = Info
|
||||
)
|
||||
|
||||
var levelNames = [6]string{"DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL", "FATAL"}
|
||||
|
|
Loading…
Reference in a new issue