]> git.giacomolli.uk - onechat/commit
Format short daemon events with slog
authorAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 01:26:01 +0000 (22:26 -0300)
committerAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 01:26:01 +0000 (22:26 -0300)
commit4c199e7d93b6a4529ed5956807911b5f6c5489a7
tree5a14df588f69a449352bf64115a61520975dc446
parent3b7a3676dc3614ee3099e8798b5d0c07cb116b93
Format short daemon events with slog

A shared handler writes the event and ordered attributes, with the error
cause last. Journal lines carry a syslog priority and terminal lines
carry the time and level, so each output keeps short, readable events.
daemon_log.go [new file with mode: 0644]
daemon_log_test.go [new file with mode: 0644]