jyjeanne/ai-setup-forge/logger-configuration-winston
Claude Code and agent skill by jyjeanne/ai-setup-forge
- community
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-winstonSKILL.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.logstatements. - When setting up observability tools (ELK stack, Datadog, etc.).
- When needing different log levels (INFO, WARN, ERROR).
Procedure
- Install Winston:
npm install winston. - Create Logger Instance:
- Configure transports:
Console(standard). - Configure format:
- Development:
format.combine(format.colorize(), format.simple()). - Production:
format.combine(format.timestamp(), format.json()).
- Define Levels: Use standard syslog levels (Error, Warn, Info, HTTP, Verbose, Debug, Silly).
- Create Wrapper: Export the logger instance.
- Integrate with Express: Use
morganor a custom middleware to pipe HTTP requests into the Winston logger. - Usage: Replace
console.logwithlogger.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
- SKILL.md in the repositoryCheckingskills/logger-configuration-winston/SKILL.md
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
[](https://verified-skill.com/skills/jyjeanne/ai-setup-forge/logger-configuration-winston)