Versions in this module Expand all Collapse all v0 v0.2.0 Oct 30, 2024 v0.1.0 Apr 2, 2024 Changes in this version + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const NoneLevel + const NoticeLevel + const PanicLevel + const TraceLevel + const WarnLevel + var DefaultEmptyEntry = &EmptyEntry + func Close() + func Debugf(format string, v ...any) + func Errorf(format string, v ...any) + func Infof(format string, v ...any) + func InitLogger(appName string, o *Options) + func SetAsync(async bool) + func SetConfig(ops ...WithConfig) + func SetLevel(level int) + func SetLogger(nl Logger) + func Warnf(format string, v ...any) + type EmptyEntry struct + func (l *EmptyEntry) Log() + func (l *EmptyEntry) WithField(any, FieldCall) Entry + func (l *EmptyEntry) WithFields(Fields) Entry + func (l *EmptyEntry) WithFormat(string) Entry + func (l *EmptyEntry) WithLevel(int) Entry + func (l *EmptyEntry) WithTime(time.Time) Entry + type EmptyLogger struct + func (l *EmptyLogger) Debugf(string, ...any) + func (l *EmptyLogger) Errorf(string, ...any) + func (l *EmptyLogger) Infof(string, ...any) + func (l *EmptyLogger) SetLevel(int) + func (l *EmptyLogger) Warnf(string, ...any) + func (l *EmptyLogger) WithDebug(string) Entry + func (l *EmptyLogger) WithError(string) Entry + func (l *EmptyLogger) WithInfo(string) Entry + func (l *EmptyLogger) WithWarn(string) Entry + type Entry interface + Log func() + WithField func(v any, call FieldCall) Entry + WithFields func(Fields) Entry + WithFormat func(f string) Entry + WithLevel func(level int) Entry + WithTime func(t time.Time) Entry + func WithDebug(format string) Entry + func WithError(format string) Entry + func WithInfo(format string) Entry + func WithWarn(format string) Entry + type Field struct + Call FieldCall + Value any + type FieldCall func(v any) any + type Fields []Field + type Logger interface + Debugf func(format string, v ...any) + Errorf func(format string, v ...any) + Infof func(format string, v ...any) + SetLevel func(level int) + Warnf func(format string, v ...any) + WithDebug func(format string) Entry + WithError func(format string) Entry + WithInfo func(format string) Entry + WithWarn func(format string) Entry + type Options struct + Async bool + Compress bool + Filename string + Level int + MaxAge int + MaxBackups int + MaxSize int + OutDir string + func NewOptions() Options + type Record struct + func (e *Record) Log() + func (e *Record) WithField(v any, call FieldCall) Entry + func (e *Record) WithFields(fields Fields) Entry + func (e *Record) WithFormat(f string) Entry + func (e *Record) WithLevel(level int) Entry + func (e *Record) WithTime(t time.Time) Entry + type WithConfig func(*handler.Config) + func WithCompressConfig(compress bool) WithConfig + func WithFileNameConfig(filename string, filterDefault bool) WithConfig + func WithLevelConfig(level int, filterDefault bool) WithConfig + func WithMaxAgeConfig(maxAge int, filterDefault bool) WithConfig + func WithMaxBackupsConfig(maxBackups int, filterDefault bool) WithConfig + func WithMaxSizeConfig(maxSize int, filterDefault bool) WithConfig + type WithOption func(o *Options) + func WithAsyncOption(async bool) WithOption + func WithCompressOption(compress bool) WithOption + func WithFileNameOption(filename string, filterDefault bool) WithOption + func WithLevelOption(level int, filterDefault bool) WithOption + func WithMaxAgeOption(maxAge int, filterDefault bool) WithOption + func WithMaxBackupsOption(maxBackups int, filterDefault bool) WithOption + func WithMaxSizeOption(maxSize int, filterDefault bool) WithOption + func WithOutDirOption(outDir string, filterDefault bool) WithOption