dev-structured-logs

Community

Convert .NET logs to structured templates safely

Authorinnexar-plat
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Legacy .NET logging often uses string concatenation or interpolation, producing unstructured messages that are hard to query and correlate. This skill modernizes ILogger and Serilog calls to structured message templates and ensures proper Serilog file sink JSON configuration.

Core Features & Use Cases

  • Structured Logging Migration: parses C# files and rewrites log calls from concatenated strings, String.Format, or interpolated strings into message templates with named properties.
  • CommandHandler Scope Insertion: optionally adds BeginScope blocks that capture command identifiers such as Id, UserId, TransactionId for richer correlation.
  • Serilog File Sink Configuration: detects Serilog package references and updates appsettings JSON files to use JSON file sinks with a custom formatter and correct file extensions.
  • Safe Dry‑Run Workflow: generates a unified diff and a preview report for review before any changes are applied, with backup and optional git commit.

Quick Start

Use dev-structured-logs to run a dry‑run migration of logging in your repository and apply the changes after review.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 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: dev-structured-logs
Download link: https://github.com/innexar-plat/Master-Coat-Solutions/archive/main.zip#dev-structured-logs

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.