From 4613acd88e193927376d020b14b668c83d2ab20a Mon Sep 17 00:00:00 2001 From: GuoChunYang Date: Fri, 8 Dec 2017 15:35:12 +0800 Subject: [PATCH] update log.go add GetLevel Function to Log --- logs/log.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/logs/log.go b/logs/log.go index 0e97a70e..d07138c2 100644 --- a/logs/log.go +++ b/logs/log.go @@ -305,6 +305,11 @@ func (bl *BeeLogger) SetLevel(l int) { bl.level = l } +// GetLevel Get Current log message level. +func (bl *BeeLogger) GetLevel() int { + return bl.level +} + // SetLogFuncCallDepth set log funcCallDepth func (bl *BeeLogger) SetLogFuncCallDepth(d int) { bl.loggerFuncCallDepth = d