From ec1b3b298fe1dbba399b5351b538254052763e4b Mon Sep 17 00:00:00 2001 From: bryanqiu Date: Fri, 21 Jul 2023 11:27:44 +0800 Subject: [PATCH] add SetLogLevelByName --- global.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) }