logging

Enforce structured logging, level policies, and secret redaction across codebases.

Updated May 28, 2026
One-click install
npx skills add https://github.com/syntropic137/harness-app-template --skill logging-syntropic137
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logging
Source: https://github.com/syntropic137/harness-app-template/tree/main/.claude/skills/logging
Command: npx skills add https://github.com/syntropic137/harness-app-template --skill logging-syntropic137

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Poor logging practices lead to un-debuggable production incidents, secret leaks, inconsistent alerting, and wasted time grepping through unstructured log noise. This Skill eliminates those issues by enforcing disciplined, structured logging standards that make production systems observable and secure.

Core Features & Use Cases

  • Structured Logging Enforcement: Replaces free-form log strings with named-field structured entries for queryability and aggregation.
  • Log Level Policy: Defines clear level rules (error, warn, info, debug) to make alerts reliable and reduce noise.
  • Secret & PII Redaction: Mandates redaction of sensitive data at the logger boundary to prevent data leaks.
  • Distributed Systems Guidance: Covers correlation ID propagation and log-trace linkage for microservice architectures.
  • Use Case: For a polyglot microservice application using TypeScript, Go, and Python, use this Skill to standardize logging across all services so on-call engineers can debug cross-service requests in minutes instead of hours of timestamp correlation.

Quick Start

Use the logging skill to audit your codebase for logging anti-patterns like unstructured log entries, unredacted secrets, and missing correlation IDs, then implement the recommended structured logging and level discipline standards.

Frequently Asked Questions about logging

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

FAQPage Schema
How do I enforce structured logging across a polyglot microservices codebase?

Enforce structured logging across polyglot microservices by standardizing named-field log entries, applying consistent log level policies, and injecting correlation IDs to link cross-service traces, yielding queryable and aggregatable production observability.

What is the best way to prevent sensitive data leaks in production application logs?

Prevent sensitive data leaks in production application logs by mandating secret and PII redaction rules directly at the logger boundary, ensuring regulatory data minimization compliance and eliminating unredacted sensitive information from log streams.

How does correlation ID propagation work for debugging distributed systems?

Correlation ID propagation for debugging distributed systems works by attaching unique identifiers to cross-service requests and linking log entries to distributed traces, allowing on-call engineers to reconstruct event sequences across microservice architectures in minutes.

Why are print statements considered an anti-pattern in production code paths?

Print statements are a production anti-pattern because they generate unstructured log noise, bypass log level policies, lack secret redaction boundaries, and prevent reliable alerting, ultimately leading to un-debuggable incidents and inconsistent observability.

When do I need to define enforceable log level policies for reliable alerting?

Define enforceable log level policies for reliable alerting when unstructured log noise causes alert fatigue and missed incidents, applying strict error, warn, info, and debug level rules to standardize formats and ensure production alerts triggeronly on meaningful events.

Can I use this logging standardization approach for a TypeScript, Go, and Python stack?

Yes, you can apply this logging standardization to a TypeScript, Go, and Python stack, providing specific guidance for polyglot codebases to unify structured formats, level discipline, and logger injection patterns across all services.