logs.go 233 B

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