Logging structured
Skill JimmyBlanquet/project-forge/skills/core/logging-structured
Structured logging with typed contexts for Next.js applications. JSON output for production, pretty-print for development.From its SKILL.md
npx -y skills add JimmyBlanquet/project-forge --skill logging-structuredAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.2 KB, 262 tokens by cl100k_base, as published. Nobody here has run it
Logging Structured Skill
Version: 1.0.0 | Category: Core | Production-ready: β
Description
Structured logging with typed contexts for Next.js applications. JSON output for production, pretty-print for development.
Features
- π Structured JSON logging
- π¨ Pretty-print in development
- π·οΈ Typed log contexts
- β‘ Performance tracking
- π Request tracing
- π Log levels (debug, info, warn, error)
Installation
cd skills/core/logging-structured && bash install.sh
Usage
import { createLogger } from '@/lib/logger'
const logger = createLogger({ module: 'api' })
logger.info('Processing request', { userId, action: 'login' })
logger.error('Failed to authenticate', { error })
logger.debug('Cache hit', { key, ttl: 300 })
Files
lib/logger/index.ts- Main logger factorylib/logger/types.ts- TypeScript typeslib/logger/middleware.ts- Next.js middleware (optional)lib/logger/classification.ts- Log classification helpers
Extracted from: internal production SaaS
What ships with it: 7 files
13.0 KB alongside SKILL.md, 6 of them executable
files/
- lib/logger/classification.tsruns7.4 KB
- lib/logger/index.tsruns2.0 KB
- lib/logger/middleware.tsruns1.5 KB
- lib/logger/types.tsruns692 B
tests/
- logger.test.tsruns253 B
- install.shruns813 B
- README.md322 B