diff --git a/modules/log/log.go b/modules/log/log.go
index e1bab8ae4a..f00675481d 100644
--- a/modules/log/log.go
+++ b/modules/log/log.go
@@ -15,13 +15,14 @@ var (
 )
 
 func init() {
-	logger = logs.NewLogger(10000)
-	logger.SetLogger("console", `{"level": 0}`)
+	NewLogger(10000, "console", `{"level": 0}`)
 }
 
 func NewLogger(bufLen int64, mode, config string) {
 	Mode, Config = mode, config
 	logger = logs.NewLogger(bufLen)
+	logger.EnableFuncCallDepth(true)
+	logger.SetLogFuncCallDepth(4)
 	logger.SetLogger(mode, config)
 }