csharp-logging-analyzer

Analyze C#/.NET codebases for logging gaps and generate a prioritized logging_plan.md.

Updated Sep 13, 2025
One-click install
npx skills add https://github.com/nobelk/claude-tools --skill csharp-logging-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csharp-logging-analyzer
Source: https://github.com/nobelk/claude-tools/tree/main/skills/csharp-logging-analyzer
Command: npx skills add https://github.com/nobelk/claude-tools --skill csharp-logging-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyzes a C# .NET codebase and produces a comprehensive, actionable logging plan (logging_plan.md) to guide production-grade logging improvements and incident readiness.

Core Features & Use Cases

  • Scan the codebase to identify missing or inconsistent logging across lifecycle, request pipeline, business logic, data access, and external integrations.
  • Generate a prioritized, concrete logging_plan.md with exact code snippets, guidelines, and a test plan to verify logging behavior.
  • Provide high-performance logging patterns (LoggerMessage) and a sample unit-test scaffold to validate logs, with DI usage and structured templates.

Quick Start

Provide your project and I will generate a complete logging_plan.md with concrete recommendations.

Frequently Asked Questions about csharp-logging-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify missing logging gaps in a C# .NET codebase?

To identify missing logging gaps in a C# .NET codebase, you need to scan lifecycle, request pipeline, business logic, data access, and external integration layers. This generates a logging_plan.md with current-state assessment and concrete code examples.

What is the best way to implement high-performance structured logging in dotnet?

The best way to implement high-performance structured logging in dotnet is using LoggerMessage patterns. This avoids boxing and reduces allocations, yielding a prioritized plan with configuration recommendations and structured templates.

How do I write unit tests to verify logging behavior in C#?

To write unit tests to verify logging behavior in C#, use a provided test scaffold alongside dependency injection. This validates structured logs across multiple layers, producing a test plan ready for direct integration into your codebase.

Can I generate a logging improvement plan for an existing ASP.NET Core project?

Yes, you can generate a logging improvement plan for an existing ASP.NET Core project by analyzing the codebase. It outputs a logging_plan.md detailing gap analysis, high-performance patterns, and configuration recommendations.