Versions in this module Expand all Collapse all v1 v1.0.0 Apr 11, 2021 Changes in this version + type Entity interface + Caller func() string + Context func() context.Context + Fields func() map[string]interface{} + Level func() Level + Message func() string + Name func() string + Time func() time.Time + TimeString func() string + type Formatter interface + Format func(Entity, *bytes.Buffer) error + type FormatterFunc func(Entity, *bytes.Buffer) error + func (f FormatterFunc) Format(e Entity, b *bytes.Buffer) error + type Hook interface + Fire func(Summary) error + Levels func() []Level + func NewHookFromFunc(levels []Level, hook func(Summary) error) Hook + type HookBag interface + Add func(Hook) + func NewHookBag() HookBag + type Level uint32 + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const PanicLevel + const TraceLevel + const WarnLevel + func GetAllLevels() []Level + func MustParseLevel(s string) Level + func ParseLevel(s string) (Level, error) + func (level Level) CapitalString() string + func (level Level) IsEnabled(l Level) bool + func (level Level) IsValid() bool + func (level Level) ShortCapitalString() string + func (level Level) ShortString() string + func (level Level) String() string + type Log interface + Debug func(...interface{}) + Debugf func(string, ...interface{}) + Debugln func(...interface{}) + Echo func(...interface{}) + Echof func(string, ...interface{}) + Echoln func(...interface{}) + Error func(...interface{}) + Errorf func(string, ...interface{}) + Errorln func(...interface{}) + Fatal func(...interface{}) + Fatalf func(string, ...interface{}) + Fatalln func(...interface{}) + Info func(...interface{}) + Infof func(string, ...interface{}) + Infoln func(...interface{}) + Log func(Level, ...interface{}) + Logf func(Level, string, ...interface{}) + Logln func(Level, ...interface{}) + Name func() string + Panic func(...interface{}) + Panicf func(string, ...interface{}) + Panicln func(...interface{}) + Print func(...interface{}) + Printf func(string, ...interface{}) + Println func(...interface{}) + Trace func(...interface{}) + Tracef func(string, ...interface{}) + Traceln func(...interface{}) + Warn func(...interface{}) + Warnf func(string, ...interface{}) + Warning func(...interface{}) + Warningf func(string, ...interface{}) + Warningln func(...interface{}) + Warnln func(...interface{}) + WithCaller func(...int) Log + WithContext func(context.Context) Log + WithError func(error) Log + WithField func(string, interface{}) Log + WithFields func(map[string]interface{}) Log + type Logger interface + AddHook func(Hook) Logger + AddHookFunc func([]Level, func(Summary) error) Logger + EnableCaller func(...int) Logger + EnableLevelCaller func(Level, ...int) Logger + GetLevel func() Level + SetDefaultTimeFormat func(string) Logger + SetExitFunc func(func(int)) Logger + SetFormatter func(Formatter) Logger + SetLevel func(Level) Logger + SetLevelOutput func(level Level, w io.Writer) Logger + SetNowFunc func(func() time.Time) Logger + SetOutput func(io.Writer) Logger + SetPanicFunc func(func(string)) Logger + func New(name string) Logger + type Summary interface + Bytes func() []byte + Size func() int + String func() string