*feature) 增加logcalldepth接口,使得能简单再次封装log系列函数。
Showing
1 changed file
with
5 additions
and
0 deletions
| ... | @@ -181,6 +181,11 @@ func (bl *BeeLogger) SetLogFuncCallDepth(d int) { | ... | @@ -181,6 +181,11 @@ func (bl *BeeLogger) SetLogFuncCallDepth(d int) { |
| 181 | bl.loggerFuncCallDepth = d | 181 | bl.loggerFuncCallDepth = d |
| 182 | } | 182 | } |
| 183 | 183 | ||
| 184 | // get log funcCallDepth for wrapper | ||
| 185 | func (bl *BeeLogger) GetLogFuncCallDepth() int { | ||
| 186 | return bl.loggerFuncCallDepth | ||
| 187 | } | ||
| 188 | |||
| 184 | // enable log funcCallDepth | 189 | // enable log funcCallDepth |
| 185 | func (bl *BeeLogger) EnableFuncCallDepth(b bool) { | 190 | func (bl *BeeLogger) EnableFuncCallDepth(b bool) { |
| 186 | bl.enableFuncCallDepth = b | 191 | bl.enableFuncCallDepth = b | ... | ... |
-
Please register or sign in to post a comment