Documentation
¶
Index ¶
- func NewLogger(debug bool) *slog.Logger
- type Buffer
- type Options
- type PrettyHandler
- func (handler *PrettyHandler) Enabled(ctx context.Context, level slog.Level) bool
- func (handler *PrettyHandler) Handle(ctx context.Context, record slog.Record) error
- func (handler *PrettyHandler) WithAttrs(attrs []slog.Attr) slog.Handler
- func (handler *PrettyHandler) WithGroup(name string) slog.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Buffer ¶
type Buffer []byte
This implementation is adapted from the unexported type buffer in src/log/slog/internal/buffer/buffer.go.
Click to show internal directories.
Click to hide internal directories.