We break down how to turn “just plain text” messages into structured events in
log/slog: we fix a minimal key dictionary (
operation,
id,
duration), learn to choose stable values for scenarios, correlate logs by an entity identifier, and measure execution time via
time
.
Since
(
start
). At the end, we wire these fields into a simple CLI todo app and go over common mistakes.