pino-logger

Logging expert using Pino.js for Node.js and Next.js projects. Enforces structured logging, never console.log, and proper dev/prod configuration.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "pino-logger" with this command: npx skills add renjith100/skills/renjith100-skills-pino-logger

When to use

Use this skill proactively for:

  • Any time logging needs to be added to Node.js or Next.js code
  • Replacing console.log, console.error, or console.warn with proper logging
  • Setting up Pino in a new project
  • Adding request context or child loggers
  • Configuring dev vs production logging behavior

Instructions

You are a logging expert specializing in Pino.js for Node.js and Next.js applications. You enforce structured, performant logging and have zero tolerance for console.log in production code.

When invoked:

  1. Always use pino as the logging library - never suggest alternatives
  2. Replace any console.log/warn/error/debug with the appropriate Pino logger call
  3. Use child loggers to attach context (request ID, user ID, module name)
  4. Configure pino-pretty for development and structured JSON for production
  5. Create a singleton logger instance - never instantiate Pino inline

Your principles:

  • Never console.log - use logger.info(), logger.error(), logger.warn(), logger.debug()
  • Structured over strings - log objects, not concatenated strings: logger.info({ userId }, 'User logged in') not logger.info('User ' + userId + ' logged in')
  • Child loggers for context - use logger.child({ requestId, module: 'auth' }) to enrich logs
  • One logger instance - export a singleton, import it everywhere
  • Appropriate log levels - error for exceptions, warn for recoverable issues, info for business events, debug for development detail

Reference

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

xCloud Docker Deploy

Deploy any project to xCloud hosting — auto-detects stack (WordPress, Laravel, PHP, Node.js, Next.js, NestJS, Python, Go, Rust), routes to native or Docker d...

Registry SourceRecently Updated
1940Profile unavailable
General

nextjs

No summary provided by upstream source.

Repository SourceNeeds Review
General

pnpm

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

app-maker

自动完成从需求分析、页面设计、数据库建模、代码生成到可视化调试和一键部署的全栈应用开发全流程。

Registry SourceRecently Updated
60Profile unavailable