check-logging

Validate Python logging conventions for quality and security.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/sunLeee/optimization --skill check-logging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-logging
Source: https://github.com/sunLeee/optimization/tree/main/.claude/skills/quality/check/check-logging
Command: npx skills add https://github.com/sunLeee/optimization --skill check-logging

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python code often suffers from inconsistent logging, exposing sensitive data, and poor message quality, which this skill identifies and enforces.

Core Features & Use Cases

  • Validates log levels, message formats, and logger setup across Python projects.
  • Detects sensitive data exposure, potential performance issues, and missing exception context.
  • Use Case: A mid-sized Python service has scattered logging calls; run this skill to surface violations and get concrete remediation steps.

Quick Start

Run the logging validation on your codebase to surface violations and actionable remediation steps.

Frequently Asked Questions about check-logging

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

FAQPage Schema
How do I check Python logging conventions for sensitive data exposure?

Check Python logging conventions by scanning source files to detect sensitive data exposure, validating log levels, and producing actionable remediation steps. This enforces message context and security quality across your project.

How do I automate Python logging quality checks for inconsistent log levels?

Automate Python logging quality checks by applying pattern matching to source code, validating level usage, and surfacing setup inconsistencies. This generates concrete recommendations to fix scattered logging calls.

What is the best way to detect missing exception context in Python logging?

Detect missing exception context in Python logging by validating code against established conventions through pattern matching. This surfaces violations where exception details are omitted, providing actionable remediation steps.

Can I use automated logging validation to find performance issues in Python code?

Use automated logging validation to find performance issues by scanning Python sources for inefficient logging patterns. The validation covers performance alongside security and setup consistency, yielding actionable recommendations.

Does automated Python logging validation work for mid-sized services with scattered logging calls?

Automated Python logging validation works for mid-sized services with scattered logging calls by scanning sources and applying pattern matching. It surfaces violations and setup inconsistencies, delivering concrete remediation steps.