1 Star 3 Fork 1

有贝无患 / go-xxljob-executor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
zap_config.go 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
fanbeibei 提交于 2022-08-18 15:03 . 恢复
// @Title zap配置
// @Description 请填写文件描述(需要改)
// @Author 请填写自己的真是姓名(需要改) 2021/6/30 12:24
// @Update 请填写自己的真是姓名(需要改) 2021/6/30 12:24
package zap
type ZapConfig struct {
Level string `mapstructure:"level" json:"level" yaml:"level"` // 级别
Format string `mapstructure:"format" json:"format" yaml:"format"` // 输出
Prefix string `mapstructure:"prefix" json:"prefix" yaml:"prefix"` // 日志前缀
Director string `mapstructure:"director" json:"director" yaml:"director"` // 日志文件夹
LinkName string `mapstructure:"link-name" json:"linkName" yaml:"link-name"` // 软链接名称
ShowLine bool `mapstructure:"show-line" json:"showLine" yaml:"showLine"` // 显示行
EncodeLevel string `mapstructure:"encode-level" json:"encodeLevel" yaml:"encode-level"` // 编码级
StacktraceKey string `mapstructure:"stacktrace-key" json:"stacktraceKey" yaml:"stacktrace-key"` // 栈名
LogInConsole bool `mapstructure:"log-in-console" json:"logInConsole" yaml:"log-in-console"` // 输出控制台
}
Go
1
https://gitee.com/youbeiwuhuan/go-xxljob-executor.git
git@gitee.com:youbeiwuhuan/go-xxljob-executor.git
youbeiwuhuan
go-xxljob-executor
go-xxljob-executor
7eb9a9b5549b

搜索帮助