Skip to content
Back to skills

Structured Logging

ASecurity

Queryable logs with correlation context and no sensitive data. Use when adding or changing logging.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 3, 2026
developmentrust

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add Andersseen/agentyx --skill structured-logging --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Structured Logging?

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

Security grade badge for Structured Logging
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andersseen-structured-logging/badge)](https://www.skillsdirectory.com/skills/andersseen-structured-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
---
name: structured-logging
description: Queryable logs with correlation context and no sensitive data. Use when adding or changing logging.
---

# Structured logging

Logs exist to answer questions during an incident. Write them for the person querying at three in
the morning.

## Log structured events, not sentences

Emit key-value fields rather than interpolated prose. Structured records can be filtered, aggregated
and correlated; free text can only be searched by substring.

## Carry correlation identifiers

Propagate a request or trace identifier through every layer, including asynchronous work. Without
it, reconstructing one operation across services is guesswork.

## Use levels with discipline

Error means someone must act, warn means a degraded path was taken, info records significant state
changes, and debug is for development. When everything is an error, the level conveys nothing.

## Never log sensitive data

Credentials, tokens, personal data and payment details must not reach logs, which are widely
readable and long-lived. Redact at the logging boundary rather than trusting call sites.

## Log decisions, not control flow

Record what was decided and why — inputs, chosen branch, outcome. Tracing every function entry
produces volume without insight and buries the events that matter.

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.