stacks-logging

Implement a centralized logging facade for Stacks framework services.

2|Updated Jul 8, 2026
One-click install
npx skills add https://github.com/bughq/bughq --skill stacks-logging-bughq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stacks-logging
Source: https://github.com/bughq/bughq/tree/main/.claude/skills/stacks-logging
Command: npx skills add https://github.com/bughq/bughq --skill stacks-logging-bughq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @stacksjs/logging.

What problem does it solve?

This Skill provides a unified, asynchronous logging facade that ensures consistent error tracking, debugging, and system monitoring across the entire Stacks application ecosystem.

Core Features & Use Cases

  • Unified Log Facade: Provides consistent methods for info, success, warning, and error logging that write to both the console and local files.
  • Advanced Debugging: Includes dump and die (dd) utilities for inspecting variables during development without cluttering production logs.
  • Performance Monitoring: Offers built-in timing functions to measure and log the execution duration of specific code blocks or database queries.

Quick Start

Use the stacks-logging skill to implement a new log entry by importing the log facade and calling the appropriate method for your event level.

Frequently Asked Questions about stacks-logging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up standardized logging in a TypeScript Stacks application?

Standardized logging in a TypeScript Stacks application is implemented via a centralized facade that captures application events and routes them to storage/logs/stacks.log. It requires the @stacksjs/logging dependency to function properly.

What is the best way to inspect variables during Stacks development without affecting production logs?

Inspecting variables during Stacks development without affecting production logs is best achieved using built-in dump and die (dd) utilities. These advanced debugging tools isolate variable inspection to the development environment.

How can I measure execution duration of database queries in a Stacks service?

Measuring execution duration of database queries in a Stacks service is done using built-in performance timing functions. These tools log the exact execution time of specific code blocks or queries.

Does the Stacks logging facade support different event severity levels?

Yes, the Stacks logging facade supports different event severity levels by providing consistent methods for info, success, warning, and error logging. These methods write output to both the console and local files.

Why are my Stacks application logs not writing to the local log files?

Stacks application logs not writing to local files typically occur because the @stacksjs/logging dependency is missing or improperly integrated. Correct integration ensures logs route asynchronously to storage/logs/stacks.log.