What problem does it solve?
Adding logging to JavaScript and TypeScript projects often leads to unstructured console output, misconfigured loggers, and libraries that hijack application logging configuration. This Skill guides correct usage of LogTape, a zero-dependency logging library, so logs are structured, filterable, and safe across Deno, Node.js, Bun, browsers, and edge functions.
Core Features & Use Cases
- Structured Logging: Write log messages with named placeholders and properties objects so log data stays parseable and searchable.
- Configuration Guidance: Set up sinks, formatters, hierarchical categories, and log levels correctly with
configure() or configureSync(), including framework-specific patterns for React, Vue, Next.js, and SvelteKit.
- Library Author Rules: Ensure library code only calls
getLogger() and never configures sinks, keeping control with the application.
- Use Case: Imagine you are adding request tracing to an Express API. The Skill shows how to create hierarchical loggers, attach request-scoped context with
logger.with(), redact sensitive fields, and route errors to a filtered sink.
Quick Start
Ask the assistant to add LogTape logging to your project with a console sink, hierarchical categories, and structured messages.