aj-geddes avatar

Application Logging

This gets you structured logging set up properly with Winston for Node.js or Python's standard logging library, plus the full ELK stack integration if you need centralized log aggregation. It covers the basics like log levels, JSON formatting, request ID tracing, and context enrichment, along with practical patterns for Express and Flask. The reference guides walk through Logstash configuration and Elasticsearch setup, which saves you from piecing together documentation from three different sources. Most useful when you're moving past console.log debugging or need to meet compliance requirements that demand audit trails. The best practices section is solid on what not to log, like avoiding secrets and preventing unbounded log file growth.

skills.sh installs
501
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill application-logging --agent claude-code

Installs into .claude/skills of the current project.

Files

Application Logging

Table of Contents

Overview

Implement comprehensive structured logging with proper levels, context, and centralized aggregation for effective debugging and monitoring.

When to Use

  • Application debugging
  • Audit trail creation
  • Performance analysis
  • Compliance requirements
  • Centralized log aggregation

Quick Start

Minimal working example:

// logger.js
const winston = require("winston");

const logFormat = winston.format.combine(
  winston.format.timestamp({ format: "YYYY-MM-DD HH:mm:ss" }),
  winston.format.errors({ stack: true }),
  winston.format.json(),
);

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
DevOps & CI/CD, AI & Agent Building
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1readwiseio avatarbuild-personareadwiseio/readwise-skillsBuild a personalized reading profile from your Readwise Reader data, used by triage, quiz, and other skills496skills.sh installs
2parcadei avatarbuildparcadei/continuous-claude-v3Workflow orchestrator that chains existing skills for feature development490skills.sh installs
3aj-geddes avatarincident-response-planaj-geddes/useful-ai-promptsCreate and execute incident response procedures for security breaches, data leaks, and cyber attacks. Use when handling security incidents, creating response pl484skills.sh installs
4levnikolaevich avatarln-100-documents-pipelinelevnikolaevich/claude-code-skillsCreates complete project documentation system (project docs, reference, tasks, tests). Use when bootstrapping docs from scratch or regenerating all.479skills.sh installs
5parcadei avatartdd-migration-pipelineparcadei/continuous-claude-v3Orchestrator-only workflow for migrating/rewriting codebases with full TDD and agent delegation478skills.sh installs
6product-on-purpose avatarfoundation-build-risk-reviewproduct-on-purpose/pm-skillsRuns a fast pre-build risk review on a product idea, feature request, or scope change, naming the single assumption most likely to make it fail and returning a 473skills.sh installs