Versions in this module Expand all Collapse all v1 v1.1.0 Oct 16, 2025 v1.0.0 Aug 12, 2025 Changes in this version + const LevelCrit + const LevelDebug + const LevelError + const LevelInfo + const LevelWarn + const TerminalColourCrit + const TerminalColourDebug + const TerminalColourError + const TerminalColourInfo + const TerminalColourKey + const TerminalColourReset + const TerminalColourWarn + const TerminalTimeFormat + func Crit(msg string, ctx ...interface{}) + func Debug(msg string, ctx ...interface{}) + func Error(msg string, ctx ...interface{}) + func Info(msg string, ctx ...interface{}) + func NewMultiHandler(handlers ...slog.Handler) slog.Handler + func SetDefault(l Logger) + func Warn(msg string, ctx ...interface{}) + type Level int + func LevelFromSlog(l slog.Level) Level + func (l *Level) UnmarshalJSON(data []byte) error + func (l *Level) UnmarshalText(data []byte) error + func (l Level) Level() slog.Level + func (l Level) MarshalJSON() ([]byte, error) + func (l Level) MarshalText() ([]byte, error) + func (l Level) String() string + func (l Level) TerminalString() string + type Logger interface + Crit func(msg string, ctx ...interface{}) + Debug func(msg string, ctx ...interface{}) + Enabled func(ctx context.Context, level Level) bool + Error func(msg string, ctx ...interface{}) + Handler func() slog.Handler + Info func(msg string, ctx ...interface{}) + Log func(level Level, msg string, attrs ...any) + New func(ctx ...interface{}) Logger + Warn func(msg string, ctx ...interface{}) + With func(ctx ...interface{}) Logger + WithGroup func(name string) Logger + func New(ctx ...interface{}) Logger + func NewLogger(h slog.Handler) Logger + func Root() Logger + type MultiHandler struct + func (h *MultiHandler) Enabled(ctx context.Context, l slog.Level) bool + func (h *MultiHandler) Handle(ctx context.Context, r slog.Record) error + func (h *MultiHandler) WithAttrs(attrs []slog.Attr) slog.Handler + func (h *MultiHandler) WithGroup(name string) slog.Handler + type TerminalHandler struct + func NewTerminalHandler(writer io.Writer, level Level) *TerminalHandler + func (h *TerminalHandler) Enabled(ctx context.Context, level slog.Level) bool + func (h *TerminalHandler) Handle(ctx context.Context, r slog.Record) error + func (h *TerminalHandler) WithAttrs(attrs []slog.Attr) slog.Handler + func (h *TerminalHandler) WithGroup(name string) slog.Handler