Chapter 14: Logging and Light Observability
14.11d Structured logging mini-example
Unstructured:
something broke in checkout
More useful:
{"level":"ERROR","msg":"checkout failed","request_id":"pb-7f3a","path":"/checkout","err":"db_timeout"}
You do not need a fancy library on day one — even consistent key=value text helps grepping later. Keep secrets out of both styles.