Beego日志框架采坑:配置日志输出到文件,只输出了启动时日志,后续日志无输出
①按照beego官方文档配置好日志输出到文件的策略:// beego logs configpackage configimport ( "fmt" "github.com/astaxie/beego" "github.com/astaxie/beego/logs")func init() { //logConf record code file and line logs.EnableFuncCallDepth(true) //enable async logConf //l
原创
2021-02-04 17:18:21 ·
1917 阅读 ·
1 评论