What problem does it solve?
This Skill helps you avoid unstructured, hard-to-debug logging by setting up Serilog so every log event carries consistent, queryable structure from startup through request handling.
Core Features & Use Cases
- Two-stage initialization: Capture startup failures with a bootstrap logger, then switch to the fully configured logger once DI is ready.
- DI-first configuration: Use AddSerilog() with ReadFrom.Services and appsettings.json-driven configuration for environment-specific log levels, sinks, and overrides.
- Rich request logging: Add a single, configurable request summary using Serilog request logging to reduce noise while still capturing status, timing, and diagnostic context.
- Structured messages and destructuring: Log using message templates and control destructuring depth/size to keep logs accurate and safe to store.
Quick Start
Use the serilog skill to configure your appsettings.json and then add Serilog via AddSerilog() with request logging enabled so your application emits structured events with consistent properties.