Versions in this module Expand all Collapse all v0 v0.2.0 May 25, 2024 Changes in this version + const DebugLv + const ErrorLv + const InfoLv + const WarnLv + type FileOutputOpt func(*OutFileOptions) + func WithCompress(compress bool) FileOutputOpt + func WithFilename(filename string) FileOutputOpt + func WithLocalTime(localTime bool) FileOutputOpt + func WithMaxAge(maxAge int) FileOutputOpt + func WithMaxBackups(maxBackups int) FileOutputOpt + func WithMaxSize(maxSize int) FileOutputOpt + type Logger struct + Logger zap.SugaredLogger + func GetInstance() *Logger + func New(opts ...Option) *Logger + func (l *Logger) AddCore(core ...zapcore.Core) + func (l *Logger) Debug(msg string, vs ...any) + func (l *Logger) Error(vs ...any) + func (l *Logger) Flush() + func (l *Logger) Info(msg string, vs ...any) + func (l *Logger) Lv() int8 + func (l *Logger) NewFileOutput(opts ...FileOutputOpt) + func (l *Logger) NewOutput(writer io.Writer) + func (l *Logger) SetLv(lv int8) + func (l *Logger) Warn(msg string, vs ...any) + type Option func(*Options) + func WithSkipCaller(skip int) Option + type Options struct + func (options Options) SkipCaller() int + type OutFileOptions struct + func (options OutFileOptions) Compress() bool + func (options OutFileOptions) Filename() string + func (options OutFileOptions) LocalTime() bool + func (options OutFileOptions) MaxAge() int + func (options OutFileOptions) MaxBackups() int + func (options OutFileOptions) MaxSize() int