Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func InitLogger(cfg LogConf) error
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- type LogConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogConf ¶
type LogConf struct { Level string `json:"level" mapstructure:"level"` Filename string `json:"filename" mapstructure:"filename"` MaxSize int `json:"maxSize" mapstructure:"maxSize"` MaxAge int `json:"maxAge" mapstructure:"maxAge"` MaxBackups int `json:"maxBackups" mapstructure:"maxBackups"` Compress bool `json:"compress" mapstructure:"compress"` }
Click to show internal directories.
Click to hide internal directories.