mirror of
https://github.com/astaxie/beego.git
synced 2024-11-29 14:01:29 +00:00
Merge pull request #1125 from wuranbo/dev_track
*feature) add BeeLogger.GetLogFuncCallDepth make simple wrapper log method aviable.
This commit is contained in:
commit
dd4afac5dc
@ -181,6 +181,11 @@ func (bl *BeeLogger) SetLogFuncCallDepth(d int) {
|
|||||||
bl.loggerFuncCallDepth = d
|
bl.loggerFuncCallDepth = d
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// get log funcCallDepth for wrapper
|
||||||
|
func (bl *BeeLogger) GetLogFuncCallDepth() int {
|
||||||
|
return bl.loggerFuncCallDepth
|
||||||
|
}
|
||||||
|
|
||||||
// enable log funcCallDepth
|
// enable log funcCallDepth
|
||||||
func (bl *BeeLogger) EnableFuncCallDepth(b bool) {
|
func (bl *BeeLogger) EnableFuncCallDepth(b bool) {
|
||||||
bl.enableFuncCallDepth = b
|
bl.enableFuncCallDepth = b
|
||||||
|
Loading…
Reference in New Issue
Block a user