java-logging-exceptions

Installation
SKILL.md

Java Logging And Exceptions

Logging

Do not hide domain-relevant logging in helper methods such as getXOrWarn(...).

Log where the problem is detected so the log points to the real origin.

Log Safety Review

Before finalizing logging changes:

  • Keep log calls where the failure or skip decision is made.
  • Extract collaborators only for formatting, encoding, mapping, or classification, not to hide domain-relevant logging.
  • Treat external data, exception values, validation paths, and rejected values as unsafe before logging.
  • Encode unsafe log values at the last formatting boundary before they are passed to the logger.
  • Name extracted log-formatting methods with verb phrases such as format..., encode..., or create....

Exceptions

Installs
4
First Seen
Jul 9, 2026
java-logging-exceptions — pepperize/java-skills