Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPrettyHandler ¶
func NewPrettyHandler(out io.Writer, opts *slog.HandlerOptions) (h *slog.JSONHandler, shutdown func())
NewPrettyHandler creates a background go routine that will write prettified output to logs written using the returned slog.JSONHandler instance.
To shut-down the background worker and wait for it's return, the caller should defer a call to the returned shutdown function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.