mirror of https://github.com/mindoc-org/mindoc.git
pull/25/merge
parent
4cc0f20f52
commit
94084e0e41
|
@ -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.SetLogFuncCall(true)
|
||||
beego.BeeLogger.Async()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue