1 Star 0 Fork 0

小鱼儿小董子/dongli-zinx

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
default.go 1.01 KB
Copy Edit Raw Blame History
小鱼儿小董子 authored 2025-01-14 22:07 +08:00 . first commit
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
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wanjimao/dongli-zinx.git
git@gitee.com:wanjimao/dongli-zinx.git
wanjimao
dongli-zinx
dongli-zinx
v0.0.1

Search