Skip to content
Back to skills

Unified Logging

ASecurity

**Purpose**: All Python files in `$PROJECT_ROOT/` MUST use the unified logging module.

  • 6 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 26, 2026
developmentpythongcp

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add jleechanorg/jleechan-skills --skill unified-logging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Unified Logging?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Unified Logging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jleechanorg-unified-logging/badge)](https://www.skillsdirectory.com/skills/jleechanorg-unified-logging)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Unified Logging

**Purpose**: All Python files in `$PROJECT_ROOT/` MUST use the unified logging module.

## Required Pattern

```python
# 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 Pattern

```python
# FORBIDDEN - Direct logging module
import logging
logger = logging.getLogger(__name__)
logger.info("message")
```

## Benefits

- Unified output to both GCP Cloud Logging (stdout) and local file
- Automatic log file path: `/tmp/<repo>/<branch>/<service>.log`
- Consistent emoji formatting for errors and warnings
- Single initialization point - no duplicate handlers

## Exceptions

Test files (`$PROJECT_ROOT/tests/*`) may use direct logging.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.