Skip to content

Commit f29759f

Browse files
committed
添加获取日志对象接口
1 parent d1b6a3d commit f29759f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

log/log.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ func GetLogLevel() Level {
1616
return mlog.level
1717
}
1818

19+
//GetLogger 获取当前日志对象.
20+
func GetLogger() *Logger {
21+
return mlog
22+
}
23+
1924
//Info .
2025
func Info(v ...interface{}) {
2126
mlog.write(LogInfo, fmt.Sprint(v...))

0 commit comments

Comments
 (0)