*feature) 增加logcalldepth接口,使得能简单再次封装log系列函数。

This commit is contained in:
wuranbo 2015-04-13 10:33:57 +08:00 committed by astaxie
parent ee4fd60e4d
commit 23268b788a
1 changed files with 5 additions and 0 deletions

View File

@ -181,6 +181,11 @@ func (bl *BeeLogger) SetLogFuncCallDepth(d int) {
bl.loggerFuncCallDepth = d
}
// get log funcCallDepth for wrapper
func (bl *BeeLogger) GetLogFuncCallDepth() int {
return bl.loggerFuncCallDepth
}
// enable log funcCallDepth
func (bl *BeeLogger) EnableFuncCallDepth(b bool) {
bl.enableFuncCallDepth = b