logs.go 435 B

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