What problem does it solve?
This Skill helps you set up Serilog structured logging in ASP.NET Core so logs remain queryable, consistent, and safe instead of becoming messy text or leaking sensitive data.
Core Features & Use Cases
- Serilog setup for ASP.NET Core: Configure Program.cs and appsettings.json to control minimum levels, enrich logs, and add sinks like OpenTelemetry.
- Structured message templates: Write message templates that preserve properties (e.g., OrderId, CustomerId) rather than losing structure through string interpolation.
- Request logging and correlation: Enable request logging middleware with consistent templates and enrich diagnostic context for troubleshooting across requests.
Quick Start
Enable Serilog request logging in Program.cs using a structured message template and configure minimum levels in appsettings.json to keep noisy framework logs under control.