Python Logging Skill for Auditable JSONL Batch Events
Define structured events so a batch job's start, skipped rows, and completion can be grouped by run ID.
中文Install in Claude Code
Use your Python job and synthetic CSV. The example works with the standard logging and json libraries.
- Get the complete `plugins/devops-tools/skills/python-logging-best-practices` directory from the pinned GitHub commit.
- Copy it into the target project's `.claude/skills/`. Check `.claude/skills/python-logging-best-practices/SKILL.md`, start Claude Code at the project root, and call `/python-logging-best-practices`.
Example task
Import four synthetic products with one invalid row. Emit started, skipped, and completed events under one run_id. Record imported=3 and skipped=1 at completion.What to check
Every line parses independently and the completion counts reconcile with the original fixture.
Original SKILL.md on GitHub · Updated
Frequently asked question
How can logs be useful to people and programs?
Keep stable JSON fields for queries and format them for human reading in a terminal or viewer.