logging-fundamentals

Implement structured logging with log levels and context propagation across services.

4|2|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/wojons/skills --skill logging-fundamentals
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logging-fundamentals
Source: https://github.com/wojons/skills/tree/main/skills/logging-fundamentals
Command: npx skills add https://github.com/wojons/skills --skill logging-fundamentals

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you implement robust logging practices, ensuring your applications and systems are observable, debuggable, and maintainable.

Core Features & Use Cases

  • Structured Logging: Implement JSON or key-value logging for machine readability.
  • Context Propagation: Ensure logs contain essential identifiers like trace IDs and user IDs across services.
  • Log Level Management: Configure appropriate log verbosity for different environments (development, production).
  • Use Case: When debugging a complex distributed system issue, this Skill ensures all related logs are correlated using trace_id, making it easy to follow a request's journey and pinpoint failures.

Quick Start

Use the logging-fundamentals skill to generate a structured logging configuration template for a new Node.js service.

Frequently Asked Questions about logging-fundamentals

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement structured logging for better observability in microservices?

Structured logging uses JSON or key-value formats to make logs machine-readable, enabling better observability. You implement it by configuring log outputs to include essential identifiers like trace IDs for correlation across distributed services.

What is context propagation and how does it help debug distributed systems?

Context propagation ensures logs contain essential identifiers like trace IDs and user IDs across services. It helps debug distributed systems by allowing you to follow a request's journey through multiple services and pinpoint failures using correlated logs.

How do I configure log levels for different environments like production and development?

Log level management configures appropriate verbosity for different environments, reducing noise in production while maintaining detail for development. You set environment-specific configurations to control which log levels are emitted.

What are the best practices for PII compliance when implementing application logging?

PII compliance in application logging requires following best practices for log content to ensure sensitive data is not exposed. You must configure logs to filter or mask personal identifiable information while retaining sufficient context for debugging.

Can I generate a structured logging configuration template for a new Node.js service?

Yes, you can generate a structured logging configuration template for a new Node.js service. The skill provides scripts and references to guide implementation of structured JSON logging with appropriate log levels and context propagation.

Why does my application logging fail to correlate requests across complex systems?

Application logging fails to correlate requests when context propagation is missing. Implementing structured logging with trace IDs ensures all related logs are correlated, making it easy to follow a request's journey and pinpoint failures.