完成基于zinc的日志收集的骨架搭建, 细节待丰富

This commit is contained in:
2025-04-26 22:30:37 +08:00
parent c472c9c078
commit 21efb0bb85
5 changed files with 133 additions and 18 deletions

View File

@ -235,10 +235,6 @@ type OptionLogger struct {
WithCallerSkip int // 跳过的调用数
ConsoleOutput bool // 控制台输出
Encoder zapcore.Encoder // 编码函数
WsServerProt int // ws端口
WsGroup string // ws分组
GinRouter *gin.Engine // gin路由实例
EnableWsLog bool // 启用wsLog
}
// SetLoggerOptionFunc 设置日志配置