代码拉取完成,页面将自动刷新
package log
import (
beegolog "gitee.com/jmesyan/impetus/log/beego"
"sync"
)
var beego *beegolog.BeeLogger
var once sync.Once
func LogBeego() *beegolog.BeeLogger {
once.Do(func() {
beego = beegolog.NewLogger()
})
return beego
}
// Emergency logs a message at emergency level.
func Emergency(f interface{}, v ...interface{}) {
LogBeego().Emergency(beegolog.FormatLog(f, v...))
}
// Alert logs a message at alert level.
func Alert(f interface{}, v ...interface{}) {
LogBeego().Alert(beegolog.FormatLog(f, v...))
}
// Critical logs a message at critical level.
func Critical(f interface{}, v ...interface{}) {
LogBeego().Critical(beegolog.FormatLog(f, v...))
}
// Error logs a message at error level.
func Error(f interface{}, v ...interface{}) {
LogBeego().Error(beegolog.FormatLog(f, v...))
}
// Warning logs a message at warning level.
func Warning(f interface{}, v ...interface{}) {
LogBeego().Warn(beegolog.FormatLog(f, v...))
}
// Notice logs a message at notice level.
func Notice(f interface{}, v ...interface{}) {
LogBeego().Notice(beegolog.FormatLog(f, v...))
}
// Info compatibility alias for Warning()
func Info(f interface{}, v ...interface{}) {
LogBeego().Info(beegolog.FormatLog(f, v...))
}
// Debug logs a message at debug level.
func Debug(f interface{}, v ...interface{}) {
LogBeego().Debug(beegolog.FormatLog(f, v...))
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。