Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogConfig ¶
type LogConfig struct {
LogFilePath string // 日志文件路径
LogLevel string // 日志级别
ShowConsole bool // 是否显示控制台日志
MaxSize int // 日志文件大小,单位M
MaxBackups int // 最大备份个数
MaxAge int // 最大备份天数
Compress bool // 是否压缩
LocalTime bool // 是否使用本地时间
}
LogConfig 日志配置文件
func (*LogConfig) InitGlobalLogger ¶
func (l *LogConfig) InitGlobalLogger()
InitGlobalLogger 初始化全局日志实例
Click to show internal directories.
Click to hide internal directories.