Serilog: Instrumentation that Works for You
summary
Serilog captures format strings as structured events so code emits message templates with named placeholders, preserves typed properties and can serialize objects with the @ operator for object serialization. Events flow through a pipeline that applies enrichers and log context (async-local correlation) to attach request, customer or claim IDs, then routes to sinks to Postgres/Elasticsearch/Seq or files. Unique template hashes identify event kinds, enabling fast server-side filtering and exclusion to triage millions of records without expensive regex parsing.
AI-written summary · about
chapters (13)
- 0:00Start
- 7:49Event Enrichment
- 8:01Part One
- 8:13Text Logging
- 20:01Sinks
- 36:04Terminology
- 39:47Pin Individual Properties to an Event
- 41:34Log Context
- 43:13Local Context
- 47:18Custom Policies
- 49:28Filtering Client-Side
- 50:32Message Templates
- 57:04Splunk








