logging-diagnostics

Enforce centralized logging standards and diagnostics across SWERPG Foundry VTT code.

1|Updated Mar 15, 2025
One-click install
npx skills add https://github.com/herveDarritchon/foundryvtt-swerpg --skill logging-diagnostics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: logging-diagnostics
Source: https://github.com/herveDarritchon/foundryvtt-swerpg/tree/main/.agents/skills/logging-diagnostics
Command: npx skills add https://github.com/herveDarritchon/foundryvtt-swerpg --skill logging-diagnostics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures consistent and secure logging practices for debugging, auditing, and system monitoring within the SWERPG Foundry VTT environment.

Core Features & Use Cases

  • Centralized Logging Enforcement: Guarantees the use of a single logger module across all code, preventing direct console usage.
  • Standardized Log Levels & Messages: Defines clear rules for error, warning, info, and debug logs, including message structure and context.
  • Use Case: When modifying core systems, use this Skill to verify logging consistency, validate no sensitive data is exposed, and ensure logs are meaningful and actionable.

Quick Start

Apply this Skill whenever editing logging-related modules or scripts to follow the outlined conventions and avoid direct console calls.

Frequently Asked Questions about logging-diagnostics

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

FAQPage Schema
How do I enforce centralized logging and prevent direct console output in Foundry VTT?

To enforce centralized logging in Foundry VTT, you must route all diagnostic messages through a single logger module. This ensures consistent error handling and prevents direct console usage across the SWERPG codebase.

What are the standard log levels for debugging and system observability in Foundry VTT?

Standard log levels for debugging and system observability in Foundry VTT include error, warning, info, and debug. Each level requires a specific message structure and context to ensure logs are meaningful and actionable.

How do I verify that my logging practices do not expose sensitive data during system monitoring?

To verify logging practices do not expose sensitive data during system monitoring, apply safety policies that validate log content. This ensures secure logging and diagnostics for auditing within the Foundry VTT environment.

Can I use standardized diagnostics for core system modifications in Foundry VTT?

Yes, you can use standardized diagnostics for core system modifications in Foundry VTT. Applying diagnostic standards during maintenance activities ensures logging consistency and validates that logs remain meaningful and actionable.

Does this logging approach define testing procedures for import paths and API rules?

Yes, this logging approach defines testing procedures for import paths and API rules. It ensures consistent use of centralized logging standards covering safety policies and system observability across the entire development workflow.

Why should I avoid direct console calls when implementing error handling in Foundry VTT?

You should avoid direct console calls when implementing error handling in Foundry VTT to maintain centralized logging enforcement. Using a single logger module guarantees consistent diagnostic standards and prevents fragmented system observability.