Versions in this module Expand all Collapse all v0 v0.8.9 Oct 20, 2024 v0.8.8 Oct 18, 2024 Changes in this version + const DefaultUserFieldCapacity + const FieldError + var AllLevels []Level = []Level + type Entry struct + Fields Fields + Level Level + Message string + Time time.Time + func (e Entry) Color() *color.Color + type Fields map[string]interface + type Level int + const Debug + const Error + const Info + const Warn + func ParseLevel(s string) (l Level, err error) + func (l *Level) Set(s string) error + func (l *Level) Type() string + func (l *Level) UnmarshalJSON(input []byte) (err error) + func (l Level) MarshalJSON() ([]byte, error) + func (l Level) Short() string + func (l Level) String() string + type Logger interface + Debug func(msg string) + Error func(msg string) + Info func(msg string) + Log func(level Level, msg string) + Printf func(format string, args ...interface{}) + ReplaceField func(field string, val interface{}) Logger + Warn func(msg string) + WithError func(err error) Logger + WithField func(field string, val interface{}) Logger + WithFields func(fields Fields) Logger + WithOutlet func(outlet Outlet, level Level) Logger + func NewLogger(outlets *Outlets, outletTimeout time.Duration) Logger + func NewNullLogger() Logger + func NewStderrDebugLogger() Logger + func NewTestLogger(t *testing.T) Logger + type Outlet interface + WriteEntry func(entry Entry) error + type Outlets struct + func NewOutlets() *Outlets + func (os *Outlets) Add(outlet Outlet, minLevel Level) + func (os *Outlets) DeepCopy() (copy *Outlets) + func (os *Outlets) Get(level Level) []Outlet + func (os *Outlets) GetLoggerErrorOutlet() Outlet