stacksjs/bench-review/stacks-logging

Claude Code and agent skill by stacksjs/bench-review

Trust tier 3
  • community
Source check pending

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

Use when implementing logging in Stacks — the log facade (info, error, warn, debug, success), dump/dd debugging, timing functions, file-based logging, or log configuration. Covers @stacksjs/logging and config/logging.ts.

Install

npx vskill@latest install stacksjs/bench-review/stacks-logging

SKILL.md

The same SKILL.md was published earlier as stacksjs/bench-review/stacks-logging.

Stacks Logging

Uses @stacksjs/clarity Logger with file writing to storage/logs/stacks.log.

Key Paths

  • Core package: storage/framework/core/logging/src/
  • Configuration: config/logging.ts
  • Log model: storage/framework/defaults/app/Models/Log.ts
  • Log file: storage/logs/stacks.log

Log Facade

typescript
import { log } from '@stacksjs/logging'
await log.info('User created', { userId: 1 })
await log.success('Deployment complete')
await log.warn('Rate limit approaching', { remaining: 10 })
await log.warning('Alias for warn')
await log.error(new Error('Something failed'), { context: 'handler' })
await log.debug('Debug info', { query: 'SELECT ...' })
Error with Exit
typescript
await log.error(err, { shouldExit: true }) // logs and exits process

Dump & Die

typescript
import { dump, dd, echo } from '@stacksjs/logging'
await dump(variable1, variable2) // inspect without stopping
await dd(variable1, variable2) // inspect and exit (never returns)
await echo('simple output')

Timing

typescript
const done = log.time('database-query')
await performQuery()
await done() // logs elapsed time

Logger Instance

typescript
import { logger } from '@stacksjs/logging'
const l = logger // underlying clarity Logger instance

config/logging.ts

typescript
{
logsPath: 'storage/logs',
deploymentsPath: 'storage/logs/deployments'
}

Gotchas

  • All log methods are async — they write to both console and file
  • Log file is at storage/logs/stacks.log
  • dd() never returns — it exits the process after dumping
  • dump() continues execution — use for non-destructive debugging
  • The Log model enables database-backed log storage and querying
  • Error logging can optionally exit the process with shouldExit: true
  • Logging is a dependency of many other packages — it's available everywhere

Security

  • Security scanPassed, 95 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
3
7-day trend score
12

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/stacksjs/bench-review/stacks-logging/badge)](https://verified-skill.com/skills/stacksjs/bench-review/stacks-logging)

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