Feature: YAML config support

This commit is contained in:
xjasonlyu
2021-11-10 13:38:20 +08:00
parent 733c4cb779
commit 5ee4c676a1
6 changed files with 58 additions and 14 deletions

View File

@@ -60,7 +60,7 @@ func ParseLevel(lvl string) (Level, error) {
return SilentLevel, nil
case "error":
return ErrorLevel, nil
case "warn":
case "warning":
return WarnLevel, nil
case "info":
return InfoLevel, nil