Why Structured Logs?
Unstructured:
[INFO] 2026-09-16T10:00:00Z Request completed in 45ms with status 200
Structured (JSON):
{"timestamp":"2026-09-16T10:00:00Z","level":"INFO","message":"request completed",
"http.method":"GET","http.route":"/tasks","http.status":200,"duration_ms":45,
"trace_id":"abc123","user_id":"alice","service":"task-svc"}
Structured logs are queryable, parseable, and aggregatable — without regex.