Overview of LogTape
mainLogTape is a zero-dependency logging library for JavaScript and TypeScript designed with a library-first philosophy. It is built to be unobtrusive: libraries can log without configuration, while applications maintain full control over how those logs are handled.
Key features include:
- Universal Runtime Support: Works in Deno, Node.js, Bun, browsers, and edge functions.
- Structured Logging: Support for logging messages with structured data.
- Hierarchical Categories: Manage log verbosity using a hierarchical category system.
- Template Literals: Use template literals for log messages with placeholders.
- Data Redaction: Built-in capabilities to redact sensitive information via patterns or specific fields.
- Extensible Sinks: Easily add custom sinks for log output.
- Framework Integrations: First-class support for web frameworks (Express, Fastify, Hono, Koa, GraphQL Yoga) and ORMs (Drizzle ORM) for automatic logging of HTTP requests, GraphQL operations, and database queries.