Documentation
¶
Overview ¶
Package logger provides the service's structured logger: a thin wrapper over log/slog so every package logs the same way and tests can silence output. The TS service used a hand-rolled leveled logger (src/logger.ts); the Go port standardizes on slog with the same level vocabulary (debug|info|warn|error).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a slog.Logger writing JSON to stderr at the given level. Unknown levels fall back to info (matching the TS oneOf default).
Types ¶
Click to show internal directories.
Click to hide internal directories.