1 Star 0 Fork 0

天雨流芳 / go-micro-framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
logger.go 886 Bytes
一键复制 编辑 原始数据 按行查看 历史
天雨流芳 提交于 2024-03-14 19:42 . 日志模块
package logger
import "context"
// LoggerHelper 打印日志的顶层接口,有Context传入的参数,会根据配置将日志发送到远程分析程序
type LoggerHelper interface {
Debug(msg string)
DebugF(format string, v ...interface{})
DebugContext(ctx context.Context, msg string)
DebugContextF(ctx context.Context, format string, v ...interface{})
Info(msg string)
InfoF(format string, v ...interface{})
InfoContext(ctx context.Context, msg string)
InfoContextF(ctx context.Context, format string, v ...interface{})
Warn(msg string)
WarnF(format string, v ...interface{})
WarnContext(ctx context.Context, msg string)
WarnContextF(ctx context.Context, format string, v ...interface{})
Error(msg string)
ErrorF(format string, v ...interface{})
ErrorContext(ctx context.Context, msg string)
ErrorContextF(ctx context.Context, format string, v ...interface{})
}
1
https://gitee.com/tylf2018/go-micro-framework.git
git@gitee.com:tylf2018/go-micro-framework.git
tylf2018
go-micro-framework
go-micro-framework
e87e0c3d7074

搜索帮助