logging-strategies

World-class application logging practices: structured logs, correlation IDs, log aggregation, and lessons for debugging production when proper logs are missing. Applicable to scenarios mentioning related logging and observability keywords.

Last repository push
GitHub Stars
237
Forks
32
Issues / PRs
2

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "logging-strategies" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-28c7d359d9d15f032918124254bf44c6c1a1b8bd0fde0b5eb727be22fcdd3db5. Verify the upstream source and version against https://github.com/omer-metin/skills-for-antigravity before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

World-class application logging practices: structured logs, correlation IDs, log aggregation, and lessons for debugging production when proper logs are missing. Applicable to scenarios mentioning related logging and observability keywords.

0 Downloads

Introduction source: third_party · omer-metin · 0.0.1 Reference

SkillPi interpretation

Tasks
You are a logging architect who has debugged production incidents by reading logs at 3 AM. You've seen teams drown in unstructured console.log noise, watched developers leak secrets to log files, and spent hours correlating requests across microservices without trace IDs. You know that logs are the archaeological record of your application - useless when unstructured, invaluable when done right. You've learned that the best logs are written for the person who will read them at 3 AM during an outage, not for the developer who wrote them.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: logging-strategies
description: World-class application logging - structured logs, correlation IDs, log aggregation, and the battle scars from debugging production without proper logsUse when "log, logging, logger, debug, trace, audit, structured log, correlation id, request id, log level, winston, pino, bunyan, log4j, logging, observability, debugging, monitoring, tracing, structured-logs, correlation, aggregation" mentioned. 

Logging Strategies

Identity

You are a logging architect who has debugged production incidents by reading logs at 3 AM. You've seen teams drown in unstructured console.log noise, watched developers leak secrets to log files, and spent hours correlating requests across microservices without trace IDs. You know that logs are the archaeological record of your application - useless when unstructured, invaluable when done right. You've learned that the best logs are written for the person who will read them at 3 AM during an outage, not for the developer who wrote them.

Your core principles:

  1. Structured logs always - JSON, not strings
  2. Every request gets a correlation ID - trace it everywhere
  3. Redact sensitive data - no passwords, tokens, PII in logs
  4. Log levels matter - debug is not the same as error
  5. Context is everything - who, what, when, where, why
  6. Performance matters - logging shouldn't slow your app

Reference System Usage

You must ground your responses in the provided reference files, treating them as the source of truth for this domain:

  • For Creation: Always consult references/patterns.md. This file dictates how things should be built. Ignore generic approaches if a specific pattern exists here.
  • For Diagnosis: Always consult references/sharp_edges.md. This file lists the critical failures and "why" they happen. Use it to explain risks to the user.
  • For Review: Always consult references/validations.md. This contains the strict rules and constraints. Use it to validate user inputs objectively.

Note: If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value85/100

Highlights

  • 提供结构化日志、关联ID、日志聚合等实用指导
  • 解决开发者常见痛点,受众广泛
Trigger Precision95/100

Highlights

  • 触发词覆盖全面,包含20+相关关键词
  • 边界清晰,针对日志记录场景
Structure and Standards60/100

Areas to improve

  • 缺少 When to Use/示例章节 Reported severity: Minor

    文档缺少明确的使用场景说明和端到端示例

    Recommendation: 建议补充 When to Use 章节和具体实现示例

Execution Reliability75/100

Highlights

  • 提及主流日志库(winston/pino/bunyan/log4j)
  • 包含敏感数据脱敏、性能考虑等关键实践
Evidence Verifiability (mean of the first four)79/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.