Versions in this module Expand all Collapse all v0 v0.1.0 Jul 29, 2026 Changes in this version + var Std = New(LevelInfo) + func Debugf(format string, args ...any) + func Errorf(format string, args ...any) + func Infof(format string, args ...any) + func Warningf(format string, args ...any) + type Formatter interface + Format func(entry LogEntry) ([]byte, error) + type JSONFormatter struct + func (j JSONFormatter) Format(entry LogEntry) ([]byte, error) + type Level byte + const LevelDebug + const LevelError + const LevelInfo + const LevelWarning + func (l Level) String() string + type LogEntry struct + File string + Level Level + Line int + Message string + Time time.Time + type Logger struct + func New(threshold Level, opts ...Option) *Logger + func (lgr *Logger) Debugf(format string, args ...any) + func (lgr *Logger) Errorf(format string, args ...any) + func (lgr *Logger) Infof(format string, args ...any) + func (lgr *Logger) SetLevel(level Level) + func (lgr *Logger) Warningf(format string, args ...any) + type Option func(*Logger) + func WithFormatter(f Formatter) Option + func WithOutput(output io.Writer) Option + type TextFormatter struct + func (t TextFormatter) Format(entry LogEntry) ([]byte, error)