Documentation
¶
Index ¶
- Variables
- func Close() error
- func Debug(msg string, fields ...zap.Field)
- func Error(msg string, fields ...zap.Field)
- func Fatal(msg string, fields ...zap.Field)
- func Info(msg string, fields ...zap.Field)
- func Init(opts *Options) error
- func Sync() error
- func Warn(msg string, fields ...zap.Field)
- func With(fields ...zap.Field) *zap.Logger
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var L *zap.Logger
L is the global logger instance
Functions ¶
Types ¶
type Options ¶
type Options struct { Level string `mapstructure:"level"` Format string `mapstructure:"format"` Filename string `mapstructure:"filename"` MaxSize int `mapstructure:"max-size"` MaxBackups int `mapstructure:"max-backups"` MaxAge int `mapstructure:"max-age"` Compress bool `mapstructure:"compress"` EnableConsole bool `mapstructure:"enable-console"` }
Options simplified configuration options
func DefaultOptions ¶
func DefaultOptions() *Options
DefaultOptions returns the default configuration
Click to show internal directories.
Click to hide internal directories.