Skip to content
Back to skills

Structured Logging

ASecurity

Emit machine-readable logs with the context needed to diagnose incidents.

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

Security analysis

A100/100

Scanned September 3, 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: Emit machine-readable logs with the context needed to diagnose incidents.
---

# 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.

Comments

Loading comments…