Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when you need to implement or improve Java logging and observability — including selecting SLF4J with Logback/Log4j2, applying proper log levels (ERROR, WARN, INFO, DEBUG, TRACE), parameterized logging, correlation context, secure logging without sensitive data exposure, environment-specific configuration, log aggregation, monitoring, and alerting. This should trigger for requests such as Improve logging; Apply logging; Refactor logging; Add logging support; Review SLF4J structured logging i
.claude/skills/jabrena-181-java-observability-logging/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 42% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 51% | 0% |
| case-06 | ✓→✓ | = Same ✓ | -20% | 0% |
| case-07 | ✓→✓ | = Same ✓ | -15% | 0% |
| case-08 | ✓→✓ | = Same ✓ | 11% | 0% |
Implement effective Java logging following standardized frameworks, meaningful log levels, core practices (parameterized logging, exception handling, no sensitive data), explicit correlation context, flexible configuration, security-conscious logging, monitoring, and alerting.
What is covered in this Skill?
Scope: The reference is organized by examples (good/bad code patterns) for each core area. Apply recommendations based on applicable examples.
Before applying any logging recommendations, ensure the project compiles. Compilation failure is a blocking condition. After applying improvements, run full verification.
./mvnw compile or mvn compile before applying any change./mvnw clean verify or mvn clean verify after applying improvementsRun ./mvnw compile or mvn compile and stop immediately if compilation fails.
Read references/181-java-observability-logging.md and evaluate framework usage, log levels, sensitive-data handling, and config gaps.
Implement selected framework/configuration/practice changes, including secure logging and monitoring integration where applicable.
Run ./mvnw clean verify or mvn clean verify after applying improvements.
For detailed guidance, examples, and constraints, see references/181-java-observability-logging.md.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 6,043 | 6,997 | +16% | 1 | 1 | 0% | 320 | 893 | +179% | 0 | 0 | — |
case-02 | fail→fail | 5,657 | 6,553 | +16% | 1 | 1 | 0% | 260 | 853 | +228% | 0 | 0 | — |
case-03 | fail→fail | 4,833 | 5,837 | +21% | 1 | 1 | 0% | 172 | 859 | +399% | 0 | 0 | — |
case-04 | fail→pass | 4,280 | 2,266 | -47% | 1 | 1 | 0% | 630 | 893 | +42% | 0 | 0 | — |
case-05 | pass→pass | 3,927 | 2,274 | -42% | 1 | 1 | 0% | 562 | 848 | +51% | 0 | 0 | — |
case-06 | pass→pass | 9,266 | 3,783 | -59% | 1 | 1 | 0% | 1,376 | 1,107 | -20% | 0 | 0 | — |
case-07 | pass→pass | 13,284 | 7,020 | -47% | 1 | 1 | 0% | 2,092 | 1,775 | -15% | 0 | 0 | — |
case-08 | pass→pass | 8,784 | 6,570 | -25% | 1 | 1 | 0% | 1,434 | 1,589 | +11% | 0 | 0 | — |
case-09 | pass→pass | 10,723 | 7,534 | -30% | 1 | 1 | 0% | 1,751 | 1,739 | -1% | 0 | 0 | — |
case-10 | pass→pass | 14,644 | 10,247 | -30% | 1 | 1 | 0% | 2,287 | 2,092 | -9% | 0 | 0 | — |
case-11 | pass→pass | 7,644 | 8,359 | +9% | 1 | 1 | 0% | 1,250 | 1,947 | +56% | 0 | 0 | — |
case-12 | pass→pass | 13,483 | 8,595 | -36% | 1 | 1 | 0% | 2,032 | 1,828 | -10% | 0 | 0 | — |
case-13 | pass→pass | 8,028 | 6,497 | -19% | 1 | 1 | 0% | 1,107 | 1,458 | +32% | 0 | 0 | — |
case-14 | pass→pass | 5,870 | 6,453 | +10% | 1 | 1 | 0% | 1,042 | 1,739 | +67% | 0 | 0 | — |
case-15 | pass→pass | 14,878 | 10,338 | -31% | 1 | 1 | 0% | 2,404 | 2,259 | -6% | 0 | 0 | — |
case-16 | pass→pass | 12,429 | 7,681 | -38% | 1 | 1 | 0% | 2,024 | 1,792 | -11% | 0 | 0 | — |
case-17 | pass→pass | 4,103 | 4,198 | +2% | 1 | 1 | 0% | 700 | 1,244 | +78% | 0 | 0 | — |
case-18 | pass→pass | 5,119 | 3,772 | -26% | 1 | 1 | 0% | 805 | 1,094 | +36% | 0 | 0 | — |
case-19 | pass→pass | 14,547 | 7,521 | -48% | 1 | 1 | 0% | 2,239 | 1,809 | -19% | 0 | 0 | — |
case-20 | pass→pass | 12,490 | 11,580 | -7% | 1 | 1 | 0% | 1,850 | 2,239 | +21% | 0 | 0 | — |
case-21 | pass→pass | 3,165 | 3,944 | +25% | 1 | 1 | 0% | 445 | 1,139 | +156% | 0 | 0 | — |
case-22 | pass→pass | 15,948 | 11,639 | -27% | 1 | 1 | 0% | 2,668 | 2,563 | -4% | 0 | 0 | — |
case-23 | pass→pass | 11,465 | 10,845 | -5% | 1 | 1 | 0% | 2,228 | 2,604 | +17% | 0 | 0 | — |
case-24 | pass→pass | 15,602 | 12,653 | -19% | 1 | 1 | 0% | 2,819 | 2,830 | +0% | 0 | 0 | — |
case-25 | pass→pass | 11,917 | 11,672 | -2% | 1 | 1 | 0% | 2,075 | 2,530 | +22% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 25 cases were attempted, and 22 counted toward the lift figure. The other 3 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +4 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.