Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogConfig ¶
type LogConfig struct { FilePath string `json:"filepath" yaml:"filepath"` // 日志文件 Level string `json:"level" yaml:"level" ` // 日志级别:debug,info,error MaxSize int `json:"maxsize" yaml:"maxsize"` // 文件大小,单位M MaxBackups int `json:"maxbackups" yaml:"maxbackups" ` // 轮转文件个数 MaxAge int `json:"maxage" yaml:"maxage" ` // 保留的文件最长时间 LogType string `json:"logtype" yaml:"logtype" ` // 输出的日志类型,支持json和txt(Console类型) Compress bool `json:"compress" yaml:"compress" ` // 文件是否压缩 OutputConsole bool `json:"outputconsole" yaml:"outputconsole"` // 输出到控制台或文件,true输出到控制台,false输出到文件 }
Click to show internal directories.
Click to hide internal directories.