Structured Logging

Structured logging records log events as fields (not just strings), making it easier to search, filter and analyse issues in production.

Structured logging stores log data as fields (e.g. OrderId=123) rather than unstructured text, making logs much easier to query.

  • Better searching and dashboards
  • Works well with correlation IDs and tracing
  • Common tools: Serilog, Seq, ELK