jyjeanne/ai-setup-forge/logger-configuration-winston

Claude Code and agent skill by jyjeanne/ai-setup-forge

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

To implement a structured logging system that outputs JSON logs for machine parsing (in production) and readable text (in development), aiding in debugging and monitoring. Use when: When replacing console.log statements; When setting up observability tools (ELK stack, Datadog, etc.); When needing different log levels (INFO, WARN, ERROR).

Install

npx vskill@latest install jyjeanne/ai-setup-forge/logger-configuration-winston

SKILL.md

The same SKILL.md was published earlier as jyjeanne/ai-setup-forge/logger-configuration-winston.

Purpose

To implement a structured logging system that outputs JSON logs for machine parsing (in production) and readable text (in development), aiding in debugging and monitoring.

When to Use

  • When replacing console.log statements.
  • When setting up observability tools (ELK stack, Datadog, etc.).
  • When needing different log levels (INFO, WARN, ERROR).

Procedure

  1. Install Winston: npm install winston.
  2. Create Logger Instance:
  • Configure transports: Console (standard).
  • Configure format:
  • Development: format.combine(format.colorize(), format.simple()).
  • Production: format.combine(format.timestamp(), format.json()).
  1. Define Levels: Use standard syslog levels (Error, Warn, Info, HTTP, Verbose, Debug, Silly).
  2. Create Wrapper: Export the logger instance.
  3. Integrate with Express: Use morgan or a custom middleware to pipe HTTP requests into the Winston logger.
  4. Usage: Replace console.log with logger.info(), logger.error(), etc.

Constraints

  • Do not log sensitive data (passwords, tokens, PII).
  • Ensure logs include context (trace ID, user ID) where possible.
  • Use correct log levels (don't log errors as info).

Expected Output

A centralized logger module that outputs structured JSON logs in production and colored text in development.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jyjeanne/ai-setup-forge/logger-configuration-winston/badge)](https://verified-skill.com/skills/jyjeanne/ai-setup-forge/logger-configuration-winston)

Something wrong with this skill or its page? Tell us.