2021-02-27 22:09:31 +08:00
|
|
|
// Package redis...
|
|
|
|
//
|
|
|
|
// Description : redis...
|
|
|
|
//
|
2021-07-25 19:05:59 +08:00
|
|
|
// Author : go_developer@163.com<白茶清欢>
|
2021-02-27 22:09:31 +08:00
|
|
|
//
|
|
|
|
// Date : 2021-02-27 5:26 下午
|
|
|
|
package redis
|
|
|
|
|
|
|
|
import (
|
2021-07-25 18:50:56 +08:00
|
|
|
"git.zhangdeman.cn/zhangdeman/gopkg/logger"
|
2021-02-27 22:09:31 +08:00
|
|
|
"go.uber.org/zap/zapcore"
|
|
|
|
)
|
|
|
|
|
|
|
|
// LoggerConfig 日志配置
|
|
|
|
//
|
2021-07-25 19:05:59 +08:00
|
|
|
// Author : go_developer@163.com<白茶清欢>
|
2021-02-27 22:09:31 +08:00
|
|
|
//
|
|
|
|
// Date : 5:26 下午 2021/2/27
|
|
|
|
type LoggerConfig struct {
|
|
|
|
LoggerPath string
|
|
|
|
LoggerFile string
|
|
|
|
LoggerLevel zapcore.Level
|
|
|
|
ConsoleOutput bool
|
|
|
|
Encoder zapcore.Encoder
|
|
|
|
SplitConfig *logger.RotateLogConfig
|
|
|
|
}
|
|
|
|
|
|
|
|
// LogFieldConfig 日志字段配置
|
|
|
|
//
|
2021-07-25 19:05:59 +08:00
|
|
|
// Author : go_developer@163.com<白茶清欢>
|
2021-02-27 22:09:31 +08:00
|
|
|
//
|
|
|
|
// Date : 9:20 下午 2021/2/27
|
|
|
|
type LogFieldConfig struct {
|
|
|
|
Message string
|
|
|
|
UsedTimeField string
|
|
|
|
CommandField string
|
|
|
|
FlagField string
|
|
|
|
}
|