Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSugerZapLogger ¶
func NewSugerZapLogger(conf Conf) *zap.SugaredLogger
Types ¶
type Conf ¶
type Conf struct { Writer Writer `yaml:"writer"` // 日志输出方式(console-控制台输出、file-文件输出、console_file-文件控制台都输出) Level string `yaml:"level"` // 日志级别(debug、info、warn、error、dpanic、panic、fatal) Filename string `yaml:"filename"` // 日志文件的位置 MaxBackups int `yaml:"maxBackups"` // 保留旧文件的最大个数 MaxAge int `yaml:"aaxAge"` // 保留旧文件的最大天数 }
Conf 日志相关配置
Click to show internal directories.
Click to hide internal directories.