Logging Patterns

Keep logs structured, correlated, low-noise, and safe for production support. Use when adding operational logging, reviewing observability, or improving diagnostics in .NET services.

9 stars 5 forksDevOps & Cloud

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add DIL8654/claude-code-dotnet-template --skill logging-patterns
Manual install
git clone --depth 1 https://github.com/DIL8654/claude-code-dotnet-template.git /tmp/claude-code-dotnet-template
mkdir -p ~/.claude/skills
cp -r /tmp/claude-code-dotnet-template/.claude/skills/logging-patterns ~/.claude/skills/logging-patterns

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Logging Patterns Skill

Write logs that help operators diagnose real problems without flooding the system or leaking sensitive data.

## When to Use
- Adding logs around business or infrastructure flows
- Reviewing observability before release
- Introducing request or message correlation
- Cleaning up noisy or inconsistent logs

---

## Quick Reference: Common Issues

| Issue | Symptom | Impact |
|-------|---------|--------|
| String interpolation logging | `$"User {id} failed"` everywhere | Loses structured properties |
| Over-logging | Info logs on every small branch | High noise, low signal |
| Sensitive data leakage | Tokens, secrets, or PII in logs | Security and compliance risk |
| Missing context | Failures logged without identifiers | Harder troubleshooting |
| Inconsistent event style | Same event logged in many shapes | Harder searching and dashboards |

---

## Structured Logging

```csharp
// BAD: Interpolated string
logger.LogInformation($"Processing order {orderId}");

// GOOD: Structured property
logger.LogInformation("Processing order {OrderId}", orderId);
```

Prefer named properties that operators and tools can query reliably.

---

## What to Log

Good candidates:
- Start and completion of important operations
- Failures with enough context to diagnose them
- State transitions
- External dependency failures
- Authentication and authorization failures where appropriate

Avoid:
- Logging every loop iteration
- Repeating the same event at multiple layers
Read the full skill on GitHub

Details

Skill name
logging-patterns
Path
.claude/skills/logging-patterns/SKILL.md
License
GPL-3.0
Repo updated
24 March 2026

FAQ

What does the Logging Patterns skill do?

Keep logs structured, correlated, low-noise, and safe for production support. Use when adding operational logging, reviewing observability, or improving diagnostics in .NET services.

How do I install the Logging Patterns skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add DIL8654/claude-code-dotnet-template --skill logging-patterns. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Logging Patterns popular?

It lives in DIL8654/claude-code-dotnet-template, which has 9 GitHub stars and 5 forks.

Related skills

API Contract Review

9

DIL8654/claude-code-dotnet-template

Review ASP.NET Core Web API contracts for HTTP semantics, versioning, backward compatibility, and response consistency. Use when the user asks to review an API, check endpoints, validate REST behavior, or before releasing contract changes.

Marketing, Sales & Business

Architecture Review

9

DIL8654/claude-code-dotnet-template

Review Clean Architecture boundaries, dependency direction, layering decisions, and abstraction quality in .NET solutions. Use when evaluating project structure, new dependencies, service boundaries, or architectural drift.

Software Development

Azure Integration

9

DIL8654/claude-code-dotnet-template

Add Azure services to .NET applications with Managed Identity, typed options, infrastructure isolation, and production-safe configuration. Use when wiring Key Vault, App Configuration, Storage, Service Bus, or Azure Identity patterns.

DevOps & Cloud

Cluster Management

9

oceanbase/oceanbase-skills

Deploy and operate community or commercial distributed OceanBase clusters with obd, including multi-node maximum-utilization sizing, lifecycle and configuration changes, upgrades, monitoring, OCP, network access, and Config Server. Use for OceanBase cluster control-plane work; route tenant, benchmark, diagnostic, and controller-administration workflows elsewhere.

DevOps & Cloud

Obd Administration

9

oceanbase/oceanbase-skills

Install, update, and administer the OBD controller, including mirrors and repositories, offline artifacts, stored-credential encryption, dynamic tools, top-level host utilities, trace evidence, OBD Web/API, runtime environment, developer mode, and telemetry. Use for controller-scoped OBD work; use the specialized cluster, tenant, testing, or obdiag skill for those domains.

DevOps & Cloud

Terraform Docs

9

tomique34/claude-skill-creator

Generate user-friendly documentation from Terraform code including module READMEs, architecture diagrams, runbooks, and quick references. Use when working with Terraform files (.tf), documenting infrastructure as code, or creating explanatory guides for Terraform modules and configurations.

DevOps & Cloud

Browse the most popular Claude skills, all devops & cloud skills, or write your own with the skills generator.