logs.go 264 B

12345678910111213
  1. package utils
  2. import (
  3. "github.com/beego/beego/v2/core/logs"
  4. )
  5. var FileLog *logs.BeeLogger
  6. func init() {
  7. FileLog = logs.NewLogger(1000000)
  8. FileLog.SetLogger(logs.AdapterFile, `{"filename":"./rdlucklog/hz_sync_log.log"}`)
  9. FileLog.EnableFuncCallDepth(true)
  10. }