What problem does it solve?
This Skill provides a lightweight, backend-agnostic logging facade for Clojure and ClojureScript libraries, allowing library authors to emit logs without dictating the logging backend used by the application.
Core Features & Use Cases
- Library Logging: Enables library authors to add logging capabilities without adding dependencies or forcing a specific logging framework on users.
- Structured Logging: Supports rich, data-oriented logging with event IDs and lazy evaluation of expensive data.
- Backend Agnostic: Works with various backends like console, Telemere, Timbre, μ/log, tools.logging, and SLF4J.
- Use Case: A library author can use
trove/log! to emit debug information about internal processing. The end-user application can then configure Trove to send these logs to Timbre for detailed analysis or to the console for immediate feedback, all without modifying the library's code.
Quick Start
Use the clojure-trove skill to emit a log message with level info and a custom message.