serilog-structured

Community

Production-ready Serilog with Seq and enrichers

AuthorFaysilAlshareef
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: serilog-structured
Download link: https://github.com/FaysilAlshareef/dotnet-ai-kit/archive/main.zip#serilog-structured

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.