Changes the name of log level constants

This commit is contained in:
Bruno Carlin 2020-02-01 10:35:33 +01:00
parent 6978dc1288
commit 1d394253d9
2 changed files with 14 additions and 7 deletions

7
CHANGELOG.md Normal file
View 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.

View file

@ -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"}