Структурированное логирование Java для Claude Code
documentation
logging-patterns is a Claude Code skill that sets up structured JSON logging for Java applications using SLF4J, MDC for request tracing, and log formats optimized for AI-assisted debugging. It covers Spring Boot 3.4+ native structured logging (logstash, ecs, and gelf formats) as well as logstash-logback-encoder configuration for earlier versions, with profile-based switching between JSON and human-readable output. Key log fields — requestId, traceId, duration_ms, and step — let Claude Code query logs directly with jq instead of regex parsing, reducing token usage and pinpointing bottlenecks faster. The skill is aimed at Java developers who need to add logging, trace request flows with correlation IDs, or make their application behavior analyzable by AI tools.
- #logging
- #slf4j
- #json
- #spring-boot
- #debugging
- #monitoring