Versions in this module Expand all Collapse all v1 v1.2.0 Apr 6, 2022 Changes in this version + func FormatToError(name string, callerSkip int, msg string, fields ...Field) error + type Field interface + Key func() string + Value func() interface{} + func NewField(key string, value interface{}) Field + type Level int8 + const DPanicLevel + const DebugLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const PanicLevel + const WarnLevel + func (l Level) String() string + type Logger interface + DPanic func(msg string, fields ...Field) + Debug func(msg string, fields ...Field) + Error func(msg string, fields ...Field) + ErrorReturn func(msg string, fields ...Field) error + Fatal func(msg string, fields ...Field) + Info func(msg string, fields ...Field) + Named func(name string) Logger + Panic func(msg string, fields ...Field) + Sync func() error + Warn func(msg string, fields ...Field) + With func(fields ...Field) Logger + func MustNewStd(opts ...StdOption) Logger + func NewStd(opts ...StdOption) (Logger, error) + type StdOption func(*logger) error + func DisableLogWrites() StdOption + func ErrWriter(w io.Writer) StdOption + func IsInDevEnvironment(isInDevEnvironment bool) StdOption + func MinLevel(minLevel Level) StdOption + func OutWriter(w io.Writer) StdOption