mirror of https://github.com/mindoc-org/mindoc.git
pull/25/merge
parent
7ced70290f
commit
21f60db3c0
|
@ -79,6 +79,11 @@ func RegisterLogger() {
|
|||
logs.Async()
|
||||
|
||||
//beego.BeeLogger.DelLogger("console")
|
||||
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