Versions in this module Expand all Collapse all v0 v0.2.0 Oct 17, 2021 v0.1.0 Oct 17, 2021 Changes in this version + const FormatJSON + const FormatLogfmt + const FormatNop + const LevelDebug + const LevelError + const LevelInfo + const LevelWarn + var ErrInvalidFormat = errors.New("Invvalid Format") + var ErrInvalidLevel = errors.New("Invalid Level") + var ErrInvalidOutput = errors.New("Invalid Format") + type Format uint + type Level uint + type Logger interface + Debug func(...interface{}) + Error func(...interface{}) + Info func(...interface{}) + Warn func(...interface{}) + func New(opts ...Option) (Logger, error) + type Option interface + func WithFormat(format Format) Option + func WithLevel(level Level) Option + func WithOutput(writer io.Writer) Option