From claude-commands
Enforces use of a unified logging utility across Python code, outputting to GCP Cloud Logging and local files. Prevents direct use of the standard logging module.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-commands:unified-loggingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Purpose**: All Python files in `$PROJECT_ROOT/` MUST use the unified logging module.
Purpose: All Python files in $PROJECT_ROOT/ MUST use the unified logging module.
# MANDATORY - Unified logging_util
from mvp_site import logging_util
logging_util.info("message")
logging_util.warning("something concerning")
logging_util.error("something failed")
logging_util.debug("debug info")
# FORBIDDEN - Direct logging module
import logging
logger = logging.getLogger(__name__)
logger.info("message")
/tmp/<repo>/<branch>/<service>.logTest files ($PROJECT_ROOT/tests/*) may use direct logging.
npx claudepluginhub jleechanorg/claude-commands --plugin claude-commandsAudits legacy codebases for unstructured logging (print, console.log, interpolated logger calls) and suggests JSON-lines compliant replacements per a structured-logging spec. Read-only; never modifies code.
Defines structured logging standards: log levels, message format, required fields, PII masking, and what to log/never log. Useful when adding log statements or configuring loggers.
Reviews Java logging code and configs for SLF4J best practices, log levels, parameterized logging, PII safety, MDC, and structured logging issues.