Skip to content
Back to skills

Logging Patterns

ASecurity

Logging for any language: what never to log, log injection, structured output, trace IDs, OpenTelemetry attributes. Load before any edit to logging code or config, however small.

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 5, 2026
ai-agentspythongo

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill logging-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Logging Patterns?

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

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

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
---
name: logging-patterns
description: Logging for any language: what never to log, log injection, structured output, trace IDs, OpenTelemetry attributes. Load before any edit to logging code or config, however small.
---

# Logging patterns

Default assumption: the stable OpenTelemetry Logs data model and semantic conventions 1.45, per the OpenTelemetry specification, with the OWASP Logging Cheat Sheet for what to log and what never to log.

A semantic-conventions row applies when the conventions version the project's OpenTelemetry instrumentation emits is at least the row's version, and a specification row when its OpenTelemetry SDK implements that specification version. The Python standard library `logging` and structlog entries are in python-patterns.

## Reference files

Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.

| Before                                                                      | Read                                                     |
| --------------------------------------------------------------------------- | -------------------------------------------------------- |
| Setting OpenTelemetry log attributes, or raising the semconv or SDK version | [reference/upgrades.md](reference/upgrades.md)           |
| Writing, changing, or reviewing logging code or log configuration           | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Choosing what to log, its level, its format, or where it goes               | [reference/practices.md](reference/practices.md)         |
| Scanning code for secrets in logs or log injection                          | [reference/tooling.md](reference/tooling.md)             |

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 ai-agents →

Comments

Loading comments…

Newsletter

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