mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-04-05 20:17:53 +08:00
*
This commit is contained in:
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
Block a user