mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 19:40:50 +00:00
*feature) 增加logcalldepth接口,使得能简单再次封装log系列函数。
This commit is contained in:
parent
ecb27f34e6
commit
e229a4762f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user