Documentation ¶
Index ¶
- func Configure(options *Options) error
- func Debug(args ...interface{})
- func Debugf(fmt string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(fmt string, args ...interface{})
- func GetLogger() *zap.SugaredLogger
- func Info(args ...interface{})
- func Infof(fmt string, args ...interface{})
- func Sync()
- func Warn(args ...interface{})
- func Warnf(fmt string, args ...interface{})
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogger ¶
func GetLogger() *zap.SugaredLogger
Types ¶
type Options ¶
type Options struct { OutputLevel string OutputPaths []string RotateOutputPath string RotationMaxSize int RotationMaxAge int RotationMaxBackups int // localTime determines whether the time format of log is local time format. // Default is true LocalTime bool }
func DefaultOptions ¶
func DefaultOptions() *Options
func (*Options) AttachCobraFlags ¶
func (*Options) AttachFlags ¶
func (*Options) GetOutputLevel ¶
Click to show internal directories.
Click to hide internal directories.