Structured logging
Emitting logs as machine-parseable records with named fields, rather than free-form sentences.
The payoff is querying: with a request id and a user id as fields rather than buried in prose, 'show me every error for this request' is a filter instead of a regular expression. The cost is discipline at the call site.