Documentation
¶
Overview ¶
Package logging provides a configurable slog-based logger for the proxy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New creates a *slog.Logger that writes human-readable text to stderr (always) and, when file is non-empty, also writes machine-readable JSON to that file. Both streams honour the same level. Returns the logger, a Closer for the log file (no-op when no file is configured), and any error opening the file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.