Documentation
¶
Index ¶
- func Debug(msg string, fields ...zap.Field)
- func Debugf(msg string, args ...interface{})
- func Error(msg string, fields ...zap.Field)
- func Errorf(msg string, args ...interface{})
- func Fatal(msg string, fields ...zap.Field)
- func Fatalf(msg string, args ...interface{})
- func Info(msg string, fields ...zap.Field)
- func Infof(msg string, args ...interface{})
- func InitLogger(release string, config *LogConfigure)
- func Sync()
- func Warn(msg string, fields ...zap.Field)
- func Warnf(msg string, args ...interface{})
- type LogConfigure
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogConfigure ¶
type LogConfigure struct {
Level string `yaml:"level" json:"level" comment:"日志级别"`
FilePath string `yaml:"file_path" json:"file_path" comment:"日志文件保存路径"`
FileMaxSize int `yaml:"file_max_size" json:"file_max_size" comment:"日志分割前大小MB"`
FileMaxAge int `yaml:"file_max_age" json:"file_max_age" comment:"日志分割前天数days"`
}
Click to show internal directories.
Click to hide internal directories.