net8-apirest-logging

Community

Structured logging for .NET 8 REST APIs.

Authorzeshone
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Structured logging, end-to-end traceability, and canonical exception handling for ASP.NET Core 8 REST APIs using Serilog with ProblemDetails, CorrelationId, and mandatory observability fields. Trigger: When implementing logging, configuring Serilog, writing exception handlers, adding Correlation ID tracking, or diagnosing incidents in a .NET 8 API.

Core Features & Use Cases

  • Canonical middleware pattern for correlation and error handling across the request pipeline.
  • Serilog bootstrap with structured logging, enrichers, and multi-sink outputs.
  • End-to-end traceability with CorrelationId propagation and ProblemDetails-based error responses.

Quick Start

Configure Serilog in your .NET 8 API project and wire the CorrelationIdMiddleware and ExceptionHandlingMiddleware to enable end-to-end traceability.

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: net8-apirest-logging
Download link: https://github.com/zeshone/zesh-one-skills/archive/main.zip#net8-apirest-logging

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.