Files
common/logger/journald_test.go
Ask Bjørn Hansen 82e7f4398b fix(logger): render full logfmt line as journal MESSAGE
The native journal handler only put the bare msg string in MESSAGE,
so default `journalctl` output lost all slog attributes (env, name,
ip_version, etc.) that were visible with the old TextHandler path.

Wrap the slog-journal handler so each record's MESSAGE is rendered
through slog.TextHandler — producing the same `level=INFO msg="..."
key=val` format as before — while still emitting every attribute as
a structured journal field for `journalctl -o verbose` / field-based
filtering.

Also fix go.mod: slog-journal is a direct dependency.
2026-04-19 02:06:29 -07:00

3.5 KiB