From 23268b788aee1171832bbc60ea29b600111424f7 Mon Sep 17 00:00:00 2001 From: wuranbo Date: Mon, 13 Apr 2015 10:33:57 +0800 Subject: [PATCH] =?UTF-8?q?*feature)=20=E5=A2=9E=E5=8A=A0logcalldepth?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=EF=BC=8C=E4=BD=BF=E5=BE=97=E8=83=BD=E7=AE=80?= =?UTF-8?q?=E5=8D=95=E5=86=8D=E6=AC=A1=E5=B0=81=E8=A3=85log=E7=B3=BB?= =?UTF-8?q?=E5=88=97=E5=87=BD=E6=95=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logs/log.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/logs/log.go b/logs/log.go index 3103ac15..5f5f1cea 100644 --- a/logs/log.go +++ b/logs/log.go @@ -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