java-enforce-logrecords

Enforces LogRecord usage and test coverage across Java Maven modules.

4|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/cuioss/plan-marshall --skill java-enforce-logrecords
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-enforce-logrecords
Source: https://github.com/cuioss/plan-marshall/tree/main/marketplace/bundles/pm-dev-java-cui/skills/java-enforce-logrecords
Command: npx skills add https://github.com/cuioss/plan-marshall --skill java-enforce-logrecords

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforce CUI logging standards by validating LogRecord usage, testing coverage, and identifier organization across Java modules.

Core Features & Use Cases

  • Comprehensive diagnostic and automation command that enforces CUI logging standards across Java modules. Validates that INFO/WARN/ERROR/FATAL use LogRecord, DEBUG/TRACE use direct logger, all LogRecords are tested with LogAssert, and identifiers are properly organized.

Quick Start

Activate the java-enforce-logrecords workflow against your Java project to begin enforcing LogRecord usage and coverage.

Frequently Asked Questions about java-enforce-logrecords

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce consistent LogRecord usage and test coverage across Java Maven modules?

To enforce consistent LogRecord usage and test coverage across Java Maven modules, activate the java-enforce-logrecords workflow. It validates production logging and generates remediation plans using structured violations.

When should direct logger calls be used instead of LogRecord in Java logging standards?

Direct logger calls should be used for DEBUG and TRACE levels, while LogRecord is enforced for INFO, WARN, ERROR, and FATAL logs. This distinction ensures consistent logging practices across Java modules.

How do I validate that all Java LogRecord definitions are tested with LogAssert?

To validate that Java LogRecord definitions are tested with LogAssert, run the enforcement workflow. It detects LogMessages classes, checks test coverage, and produces structured violations for any untested records.

Does the LogRecord enforcement workflow support single-module and multi-module Maven projects?

The LogRecord enforcement workflow supports both single-module and multi-module Maven Java projects. It relies on a configured module mapping store to coordinate detection and apply logging standards consistently.

How does the Java LogRecord enforcement process generate remediation plans?

The Java LogRecord enforcement process generates remediation plans by detecting LogMessages classes, validating production usage against logging standards, and producing structured enforcement steps through the cui-logging workflow.

Why are my Java logging identifiers flagged as improperly organized during LogRecord validation?

Java logging identifiers are flagged as improperly organized during validation when they violate CUI logging standards. The enforcement workflow checks identifier organization and reports violations to ensure proper structure.