What problem does it solve?
This Skill provides a robust framework for structured client-side logging, error reporting, and analytics event tracking, ensuring data is captured reliably and privately.
Core Features & Use Cases
- Structured Logging: Logs are JSON-serializable, making them easy to parse and aggregate. Supports different log levels (ERROR, WARN, INFO, DEBUG) configurable by environment.
- Error Reporting: Reliably sends errors to a backend service using
sendBeacon or fetch, with global handlers for uncaught errors and unhandled promise rejections.
- Analytics Events: Tracks user interactions and page views with debounced sending and
sendBeacon for reliability.
- Privacy: Includes mechanisms for PII scrubbing and consent-based logging.
- Use Case: Implement comprehensive client-side monitoring for a web application, capturing user interactions, performance metrics, and critical errors for debugging and analysis.
Quick Start
Use the logging skill to log an informational message with user ID 'user-123'.