๐Ÿชต
QualityShell

Logging Patterns

by decebals

Logging Patterns is a Quality skill for Claude Code, published by decebals in claude-code-java.

714 stars142 forkson decebals/claude-code-javaAdded 2026/08/23+1% in starsRepository updated 2026/02/08
ai-assisted-developmentclaude-codeclaude-code-skillsdeveloper-toolsjava
Install in seconds
Install Logging Patterns
Copy Logging Patterns into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/decebals/claude-code-java/tree/main/.claude/skills/logging-patterns ~/.claude/skills/logging-patterns

Requires Node.js. Downloads this skill only โ€” not the rest of the repository โ€” into your Claude Code skills folder.

Without Node.js

git clone https://github.com/decebals/claude-code-java.git

Clones the whole repository, then copy the skillโ€™s own directory into your skills folder yourself.

In this catalog

Source file
.claude/skills/logging-patterns/SKILL.md in decebals/claude-code-java
Installs to
~/.claude/skills/logging-patterns
Collection
One of 18 skills cataloged from this repository
Category
Quality โ€” 1354 skills

What Logging Patterns does

Logging Patterns shows how to add structured SLF4J logging in Java, including JSON output and MDC request tracing. Use it when debugging application flow or making logs easier for Claude Code to analyze.

Logging Patterns is cataloged under Quality on DirSkills. Logging Patterns comes from a repository tagged ai-assisted-development, claude-code, claude-code-skills, developer-tools and java.

Documentation

README

Logging Patterns Skill

Effective logging for Java applications with focus on structured, AI-parsable formats.

When to Use

  • User says "add logging" / "improve logs" / "debug this"
  • Analyzing application flow from logs
  • Setting up structured logging (JSON)
  • Request tracing with correlation IDs
  • AI/Claude Code needs to analyze application behavior

AI-Friendly Logging

Key insight: JSON logs are better for AI analysis - faster parsing, fewer tokens, direct field access.

Why JSON for AI/Claude Code?

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Logging Patterns

  • What else does decebals publish alongside Logging Patterns?

    Logging Patterns is one of 18 skills that DirSkills catalogs from decebals/claude-code-java, the repository it ships in. Its siblings there include API Contract Review, Architecture Review and Changelog Generator. Each one is a separate skill with its own page in this directory, installs the same way Logging Patterns does, and is maintained by decebals in that same repository. The rest of the collection is listed on the decebals/claude-code-java page.

  • How does Logging Patterns compare to other Quality skills?

    Logging Patterns ranks #1036 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Logging Patterns against them. Open each page to compare what they document and how they install.

More from decebals/claude-code-java

Logging Patterns is one of 18 skills cataloged on DirSkills from decebals/claude-code-java.

See all 18 skills โ†’
๐Ÿ”
1w ago

API Contract Review

API Contract Review audits REST endpoints for HTTP semantics, versioning, backward compatibility, and response consistency. Use it when reviewing API changes or checking controller PRs before release.
Quality
714142
๐Ÿ—๏ธ
1w ago

Architecture Review

Architecture Review analyzes Java project structure at the macro level, including packages, modules, layers, and dependency direction. Use it to check organization, boundary violations, and clean or hexagonal architecture compliance.
Quality
714142
๐Ÿ“
1w ago

Changelog Generator

Changelog Generator creates changelog entries from conventional git commits for Java projects. Use it when preparing a release, updating release notes, or summarizing what changed since the last version.
Writing
714142
๐Ÿงน
1w ago

Clean Code

Clean Code helps refactor code for readability and maintainability using DRY, KISS, YAGNI, and clear naming. Use it when cleaning up code, simplifying functions, or reviewing code quality.
Quality
714142
๐Ÿงต
1w ago

Concurrency Review

Concurrency Review checks Java code for thread safety, race conditions, deadlocks, and async pitfalls. Use it when reviewing multi-threaded code, CompletableFuture, @Async, or modern concurrency patterns.
Quality
714142
๐Ÿงฉ
1w ago

Design Patterns

Design Patterns gives Java examples for common patterns like Factory, Builder, Strategy, and Observer. Use it when implementing a pattern, designing extensible components, or refactoring rigid code.
Writing
714142