logtape
Installation
SKILL.md
LogTape
LogTape is a zero-dependency logging library for JavaScript and TypeScript across Node.js, Bun, Deno, browsers, and edge runtimes.
Official sources:
- LogTape docs: https://logtape.org/
- Official skill source: https://github.com/dahlia/logtape/tree/main/packages/logtape/skills/logtape
Core Rules
- Configure LogTape once in the application entry point, before framework startup.
- Do not call
configure()orconfigureSync()from reusable library code. - Use array categories for hierarchical filtering:
getLogger(["app", "module", "operation"]). - Prefer structured messages with named placeholders and a properties object.
- Use template literal logging only for quick debug messages that do not need structured fields.
- Attach request, tenant, user, sync, or job context through logger context rather than string concatenation.
- Reset LogTape in test teardown when tests configure it.