From 94084e0e411021db316f65342ab6c8701a2b138b Mon Sep 17 00:00:00 2001 From: lifei6671 Date: Mon, 1 May 2017 17:17:04 +0800 Subject: [PATCH] * --- commands/command.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/command.go b/commands/command.go index a7eaad38..b6799cd4 100644 --- a/commands/command.go +++ b/commands/command.go @@ -82,9 +82,10 @@ func RegisterLogger() { if _,err := os.Stat("logs/log.log"); os.IsNotExist(err) { if f,err := os.Create("logs/log.log");err == nil { f.Close() + beego.SetLogger("file",`{"filename":"logs/log.log"}`) } } - beego.SetLogger("file",`{"filename":"logs/log.log"}`) + beego.SetLogFuncCall(true) beego.BeeLogger.Async() }