pull/25/merge
lifei6671 2017-05-01 17:17:04 +08:00
parent 4cc0f20f52
commit 94084e0e41
1 changed files with 2 additions and 1 deletions

View File

@ -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()
}