structured logging
Logging named fields a machine can search, not just sentences.
Structured logs emit key-value fields (often as JSON) so they can be filtered and aggregated, e.g. status=500 route=/items.
Examples
info!(sailing, seats, "seats booked")printsINFO seats booked sailing="09:15" seats=3, with each fact as a named field.
See also