Documentation ¶
Index ¶
- func Debugf(template string, args ...interface{})
- func Debugw(msg string, keysAndValues ...interface{})
- func Errorf(template string, args ...interface{})
- func Errorw(msg string, keysAndValues ...interface{})
- func Fatalf(template string, args ...interface{})
- func Fatalw(msg string, keysAndValues ...interface{})
- func Infof(template string, args ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func Panicf(template string, args ...interface{})
- func Panicw(msg string, keysAndValues ...interface{})
- func RegisterLogger(options *Options)
- func Sync()
- func Warnf(template string, args ...interface{})
- func Warnw(msg string, keysAndValues ...interface{})
- type Logger
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface { Debugf(template string, args ...interface{}) Infof(template string, args ...interface{}) Warnf(template string, args ...interface{}) Errorf(template string, args ...interface{}) Panicf(template string, args ...interface{}) Fatalf(template string, args ...interface{}) Debugw(msg string, keysAndValues ...interface{}) Infow(msg string, keysAndValues ...interface{}) Warnw(msg string, keysAndValues ...interface{}) Errorw(msg string, keysAndValues ...interface{}) Panicw(msg string, keysAndValues ...interface{}) Fatalw(msg string, keysAndValues ...interface{}) Sync() }
type Options ¶
type Options struct { Level string `json:"level" mapstructure:"level"` OutputPath string `json:"output-path" mapstructure:"output-path,omitempty"` MaxSize int `json:"max-size" mapstructure:"max-size,omitempty"` MaxBackups int `json:"max-backups" mapstructure:"max-backups,omitempty"` MaxAge int `json:"max-age" mapstructure:"max-age,omitempty"` Compress bool `json:"compress" mapstructure:"compress,omitempty"` MessageKey string `json:"message-key" mapstructure:"message-key,omitempty"` LevelKey string `json:"level-key" mapstructure:"level-key,omitempty"` CallerKey string `json:"caller-key" mapstructure:"caller-key,omitempty"` TimeKey string `json:"time-key" mapstructure:"time-key,omitempty"` }
Click to show internal directories.
Click to hide internal directories.