Documentation
¶
Overview ¶
Package termlog renders slog records as colored, human-readable terminal lines.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is a slog.Handler that produces colored, human-readable output.
Non-verbose (Info+): focuses on scenario progress — clean, minimal. Verbose (Debug): includes component tags and structured attrs.
func NewHandler ¶
NewHandler renders to w, in colour only where colour is read as colour: a run redirected to a file, or reported through go test, would otherwise carry escape sequences into text somebody reads later.
Click to show internal directories.
Click to hide internal directories.