Documentation
¶
Overview ¶
Package logging owns stderr diagnostics independently of command result streams.
Index ¶
- func Emit(logger *slog.Logger, level slog.Level, message string, attrs ...slog.Attr) error
- func Failure(logger *slog.Logger, err error, contextAttrs ...slog.Attr) error
- func New(w io.Writer, level, format string) (*slog.Logger, error)
- func Writer(logger *slog.Logger, level slog.Level) io.Writer
- type Reported
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Failure ¶
Failure reports a command failure once, with upstream diagnostics separate from user guidance.
Types ¶
Click to show internal directories.
Click to hide internal directories.