What problem does it solve?
Centralizes and structures application logs so startup failures, contextual diagnostics, and operational events are searchable and queryable instead of hidden in free-form text logs.
Core Features & Use Cases
- Two-stage bootstrap to capture startup errors before full configuration is available.
- Structured message templates and object destructuring to preserve queryable properties.
- Enrichers for Application, MachineName, and CorrelationId to provide consistent context across services.
- Seq sink for centralized aggregation, querying, and retention of structured events.
- Per-namespace level overrides and request logging enrichment to reduce noise and capture user/context metadata.
- Use Cases: diagnosing production incidents, centralizing logs across microservices, and instrumenting request flows for observability.
Quick Start
Set up Serilog with a two-stage bootstrap in Program.cs, add Application, MachineName and CorrelationId enrichers, enable request logging enrichment, and configure the Seq sink via appsettings.json or environment variables.