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