Feature: add silent info level

This commit is contained in:
Dreamacro
2018-12-03 23:41:40 +08:00
parent 6636db242b
commit ca6e67a384
4 changed files with 11 additions and 8 deletions

View File

@ -14,6 +14,7 @@ var (
"warning": WARNING,
"info": INFO,
"debug": DEBUG,
"silent": SILENT,
}
)
@ -22,6 +23,7 @@ const (
INFO
WARNING
ERROR
SILENT
)
type LogLevel int
@ -70,6 +72,8 @@ func (l LogLevel) String() string {
return "error"
case DEBUG:
return "debug"
case SILENT:
return "silent"
default:
return "unknow"
}