add SetLogLevelByName

This commit is contained in:
bryanqiu 2023-07-21 11:27:44 +08:00
parent 6126b66f6a
commit ec1b3b298f

View File

@ -25,10 +25,14 @@ func Cleanup() {
} }
} }
func SetLogLevel(newlv logLevel) (oldlv logLevel) { func SetLogLevel(newlv LogLevel) (oldlv LogLevel) {
return mylog.SetLogLevel(newlv) return mylog.SetLogLevel(newlv)
} }
func SetLogLevelByName(newlv string) (oldlv string) {
return mylog.SetLogLevelByName(newlv)
}
func PrintPretty(prefix string, v interface{}) { func PrintPretty(prefix string, v interface{}) {
mylog.PrintPretty(prefix, v) mylog.PrintPretty(prefix, v)
} }