Versions in this module Expand all Collapse all v0 v0.1.1 Jul 1, 2026 v0.1.0 Jun 26, 2026 Changes in this version + func JSONHandler(w io.Writer, h *slog.HandlerOptions) slog.Handler + func TextHandler(w io.Writer, h *slog.HandlerOptions) slog.Handler + type Config lumberjack.Logger + type Format int8 + const JSON + const Text + type Level int + const Crit + const DPanic + const DTrace + const Debug + const DefaultLevel + const Error + const Fatal + const Info + const Sec + const Trace + const Warn + func ParseLevel(level string) Level + func (t Level) Level() slog.Level + func (t Level) String() string + type Logger interface + DPanic func(msg string, args ...any) + DTrace func(msg string, args ...any) + Debug func(msg string, args ...any) + Error func(msg string, args ...any) + Fatal func(msg string, args ...any) + Info func(msg string, args ...any) + Log func(ctx context.Context, level Level, msg string, args ...any) + SetDefault func() Logger + Trace func(msg string, args ...any) + Warn func(msg string, args ...any) + var NOOP Logger = &noop{} + func Default() Logger + func New(ctx context.Context, opts ...Option) Logger + func TestLogger(ctx context.Context, t *testing.T) Logger + type NewHandler func(io.Writer, *slog.HandlerOptions) slog.Handler + type Option func(*logger) error + func WithArgs(args ...slog.Attr) Option + func WithConfig(c *Config) Option + func WithFormat(f Format) Option + func WithGroup(group string) Option + func WithLevel(level Level) Option