Versions in this module Expand all Collapse all v0 v0.0.2 Oct 6, 2022 v0.0.1 Jul 20, 2022 Changes in this version + var LevelName = map[Level]string + var LevelValue = map[string]Level + func NewContext(ctx context.Context, field ...Field) context.Context + type Factory interface + Logger func(name string) Logger + func GetFactory() Factory + func NewNopLoggerFactory() Factory + func SwapFactory(factory Factory) Factory + type Field interface + Key func() string + Type func() FieldType + Value func() any + func Any(key string, value any) Field + func Binary(key string, value []byte) Field + func Bool(key string, value bool) Field + func Boolp(key string, value *bool) Field + func Complex128(key string, value complex128) Field + func Complex128p(key string, value *complex128) Field + func Complex64(key string, value complex64) Field + func Complex64p(key string, value *complex64) Field + func Duration(key string, value time.Duration) Field + func Durationp(key string, value *time.Duration) Field + func Error(err error) Field + func Float32(key string, value float32) Field + func Float32p(key string, value *float32) Field + func Float64(key string, value float64) Field + func Float64p(key string, value *float64) Field + func Int(key string, value int) Field + func Int16(key string, value int16) Field + func Int16p(key string, value *int16) Field + func Int32(key string, value int32) Field + func Int32p(key string, value *int32) Field + func Int64(key string, value int64) Field + func Int64p(key string, value *int64) Field + func Int8(key string, value int8) Field + func Int8p(key string, value *int8) Field + func Intp(key string, value *int) Field + func NamedError(key string, err error) Field + func Stack(key string) Field + func StackSkip(key string, skip int) Field + func String(key string, value string) Field + func Stringer(key string, value fmt.Stringer) Field + func Stringp(key string, value *string) Field + func Time(key string, value time.Time) Field + func Timep(key string, value *time.Time) Field + func Uint(key string, value uint) Field + func Uint16(key string, value uint16) Field + func Uint16p(key string, value *uint16) Field + func Uint32(key string, value uint32) Field + func Uint32p(key string, value *uint32) Field + func Uint64(key string, value uint64) Field + func Uint64p(key string, value *uint64) Field + func Uint8(key string, value uint8) Field + func Uint8p(key string, value *uint8) Field + func Uintp(key string, value *uint) Field + func Uintptr(key string, value uintptr) Field + func Uintptrp(key string, value *uintptr) Field + type FieldType uint8 + const BinaryType + const BoolType + const Complex128Type + const Complex64Type + const DurationType + const ErrorType + const Float32Type + const Float64Type + const Int16Type + const Int32Type + const Int64Type + const Int8Type + const StackType + const StringType + const StringerType + const TimeType + const Uint16Type + const Uint32Type + const Uint64Type + const Uint8Type + const UintptrType + const UnknownType + type Level int32 + const DebugLevel + const ErrorLevel + const InfoLevel + const OffLevel + const WarnLevel + func (l *Level) UnmarshalYAML(value *yaml.Node) error + func (l Level) Enabled(proba Level) bool + func (l Level) MarshalYAML() (any, error) + func (l Level) String() string + type LevelEnabler interface + Enabled func(Level) bool + type Logger interface + Debug func(v ...any) + Debugf func(format string, v ...any) + Debugln func(v ...any) + Debugw func(message string, field ...Field) + Error func(v ...any) + Errorf func(format string, v ...any) + Errorln func(v ...any) + Errorw func(message string, field ...Field) + Info func(v ...any) + Infof func(format string, v ...any) + Infoln func(v ...any) + Infow func(message string, field ...Field) + Warn func(v ...any) + Warnf func(format string, v ...any) + Warnln func(v ...any) + Warnw func(message string, field ...Field) + WithField func(field ...Field) Logger + func WithContextField(ctx context.Context, logger Logger) Logger