diff --git a/global.go b/global.go index 41d7292..399dd10 100644 --- a/global.go +++ b/global.go @@ -25,10 +25,14 @@ func Cleanup() { } } -func SetLogLevel(newlv logLevel) (oldlv logLevel) { +func SetLogLevel(newlv LogLevel) (oldlv LogLevel) { return mylog.SetLogLevel(newlv) } +func SetLogLevelByName(newlv string) (oldlv string) { + return mylog.SetLogLevelByName(newlv) +} + func PrintPretty(prefix string, v interface{}) { mylog.PrintPretty(prefix, v) }