logging
Consistent, safe log statements with correct levels and no PII. Use when adding or reviewing log statements.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Consistent, safe log statements with correct levels and no PII. Use when adding or reviewing log statements.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Team quality gate as executable instruction. Use when reviewing completed work before merge, or when processing PR review comments received from other reviewers.
Generate well-formed user stories from technical context. Use when generating or improving story descriptions for an issue tracker.
Type-safe validated configuration properties from application.yml. Use when adding any externalisable value.
Consistent error handling with named exceptions and global handler. Use when implementing any method that can fail with a business reason.
Team standard for improving existing code without changing behaviour. Use when refactoring code.
Team threat model as executable instruction. Use when checking code for security issues before merge.
| name | logging |
| description | Consistent, safe log statements with correct levels and no PII. Use when adding or reviewing log statements. |
When to load it: When adding any new log statement, or when reviewing log coverage in an existing feature.
Produces log statements at the correct level, with safe content (no PII, no full request/response bodies), following a consistent pattern across the codebase.
LoggerFactory.getLogger()). Never System.out.println.DEBUG — service method entry and exit. Verbose, for local diagnosis.INFO — business events. Something meaningful happened (resource created, query returned results).WARN — recoverable conditions. Something unexpected but handled (empty result, fallback used).ERROR — exception boundaries only. Once per failure, with full stack trace.private static final Logger log = LoggerFactory.getLogger([ClassName].class);
// Service entry (DEBUG)
log.debug("Finding [resource] id={}", id);
// Business event (INFO)
log.info("Created [resource] id={}", resource.getId());
// Recoverable condition (WARN)
log.warn("No [resource] found for id={}, returning empty result", id);
// Exception boundary (ERROR — once, with stack trace)
log.error("Failed to retrieve [resource] id={}", id, ex);
System.out.println or System.err.printlnERROR inside service methods — only at exception boundaries (global handler){}