What problem does it solve?
Workleap frontend applications often require consistent, multi-destination logging across console and telemetry. This skill provides a structured approach to configure loggers, manage scopes, and apply log levels for reliable observability.
Core Features & Use Cases
- BrowserConsoleLogger outputs styled logs to the browser console with configurable log levels.
- CompositeLogger enables multi-destination logging by combining multiple loggers (e.g., console + telemetry).
- Scopes group related log entries to improve traceability during complex workflows.
- Chained segments and styled text support rich, contextual logs.
- Telemetry integrations (e.g., LogRocket) help centralize logs for analysis and monitoring.
Quick Start
Install the library with your package manager, import BrowserConsoleLogger and CompositeLogger, and create a logger that outputs to multiple destinations. Example usage: configure a composite logger with a browser console logger and a telemetry logger, then emit a sample log.