What problem does it solve?
This Skill provides a practical guide to implementing and understanding debug logging, helping developers quickly surface useful runtime information during development and troubleshooting.
Core Features & Use Cases
- Namespace-based logging: organized loggers per module (e.g., lobe-server:market) for clear, scannable output.
- Format-aware logging: supports standard placeholders (%O, %o, %s, %d) to display objects and values cleanly.
- Environment-friendly toggling: enables or disables logging across environments (Browser, Node.js, Electron) via environment variables or localStorage.
- Use Case: quickly diagnose a failing route by enabling a logger for the affected module and reviewing structured output.
Quick Start
Import the debug package, create a logger with a namespaced key, and emit messages to verify behavior in your current environment.