Fetch the repository succeeded.
package zlog
import (
"context"
"fmt"
"gitee.com/wanjimao/dongli-zinx/ziface"
)
var zLogInstance ziface.ILogger = new(zinxDefaultLog)
type zinxDefaultLog struct{}
func (log *zinxDefaultLog) InfoF(format string, v ...interface{}) {
StdZinxLog.Infof(format, v...)
}
func (log *zinxDefaultLog) ErrorF(format string, v ...interface{}) {
StdZinxLog.Errorf(format, v...)
}
func (log *zinxDefaultLog) DebugF(format string, v ...interface{}) {
StdZinxLog.Debugf(format, v...)
}
func (log *zinxDefaultLog) InfoFX(ctx context.Context, format string, v ...interface{}) {
fmt.Println(ctx)
StdZinxLog.Infof(format, v...)
}
func (log *zinxDefaultLog) ErrorFX(ctx context.Context, format string, v ...interface{}) {
fmt.Println(ctx)
StdZinxLog.Errorf(format, v...)
}
func (log *zinxDefaultLog) DebugFX(ctx context.Context, format string, v ...interface{}) {
fmt.Println(ctx)
StdZinxLog.Debugf(format, v...)
}
func SetLogger(newlog ziface.ILogger) {
zLogInstance = newlog
}
func Ins() ziface.ILogger {
return zLogInstance
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。