Grepedia
LO

LogTape

Zero-dependency logging library for JavaScript and TypeScript with structured logging and cross-runtime support.

Score0
Comments0
About

LogTape is a JavaScript and TypeScript logging library designed with a “library-first” philosophy, enabling both applications and libraries to produce logs without tightly coupling configuration. It provides a flexible and minimal logging system that works consistently across multiple runtimes including Node.js, Deno, Bun, browsers, and edge environments.

Unlike traditional logging libraries that require upfront configuration, LogTape allows libraries to emit logs safely without setup, while leaving full control of configuration (such as output destinations and log levels) to the consuming application. This separation makes it particularly useful for reusable packages and shared codebases.

The system is built around core concepts such as loggers, sinks (destinations), and filters. Logs can be routed to various outputs like console, files, streams, or external systems, and developers can define custom sinks for specialized needs. It also supports structured logging, allowing logs to include rich metadata for better searchability and analysis.

LogTape includes features such as hierarchical categories for organizing loggers, template literal-based logging, and built-in data redaction for sensitive information. Its zero-dependency design and runtime-agnostic architecture make it lightweight and portable, suitable for modern JavaScript environments and tooling ecosystems.

Key features include:

  • Zero-dependency logging library with minimal overhead
  • Works across Node.js, Deno, Bun, browsers, and edge runtimes
  • Structured logging with support for metadata and context
  • Library-first design with application-controlled configuration
  • Hierarchical logger categories and log level control • Built-in data redaction for sensitive information

Common use cases include:

  • Adding logging to reusable libraries
  • Implementing structured logging in backend services
  • Building cross-runtime JavaScript applications
  • Integrating logging into edge or serverless environments
  • Creating custom logging pipelines for observability systems

LogTape is developed as an open-source project focused on modern, flexible logging for JavaScript and TypeScript ecosystems.

Comments

0
0/5000

Markdown is supported.