DEV.co
Open-Source Observability · dahlia

logtape

LogTape is a lightweight, zero-dependency logging library for JavaScript/TypeScript that works across Deno, Node.js, Bun, browsers, and edge environments. It emphasizes library-safe logging with structured data support, hierarchical categories, and built-in redaction for sensitive information.

Source: GitHub — github.com/dahlia/logtape
1.9k
GitHub stars
47
Forks
TypeScript
Primary language
MIT
License (OSI-approved)

Key facts

Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.

FieldValue
Repositorydahlia/logtape
Ownerdahlia
Primary languageTypeScript
LicenseMIT — OSI-approved
Stars1.9k
Forks47
Open issues10
Latest releaseUnknown
Last updated2026-07-07
Sourcehttps://github.com/dahlia/logtape

What logtape is

A runtime-agnostic TypeScript logging library with hierarchical category-based configuration, structured logging, template literal support, and modular sink architecture. Includes framework integrations (Express, Fastify, Hono, Koa, GraphQL Yoga, Drizzle ORM) and adapters for legacy loggers (Winston, Pino, Bunyan, log4js).

Quickstart

Get the logtape source

Clone the repository and explore it locally.

terminalbash
git clone https://github.com/dahlia/logtape.gitcd logtape# follow the project's README for install & configuration

Need it deployed, integrated, or customized instead? DEV.co ships production installs.

Best use cases

Multi-runtime JavaScript libraries and SDKs

LogTape's library-first design and zero dependencies make it ideal for packages distributed to Deno, Node.js, and Bun environments without dependency bloat or version conflicts.

Full-stack applications with framework logging

First-class integrations with Express, Fastify, Hono, and other web frameworks enable automatic HTTP request and database query logging with minimal setup.

Edge and serverless functions with structured logs

Browser and edge-function support combined with structured logging and sinks (CloudWatch, Sentry, OpenTelemetry) suit cost-conscious, ephemeral deployment models.

Implementation considerations

  • No stable release version yet (latest release: n/a); evaluate API stability and roadmap before production adoption.
  • Verify sink and integration package maturity for your target frameworks; adaptor support spans Express to Drizzle ORM but each may have different stability timelines.
  • Plan redaction and PII handling during initial setup; LogTape provides pattern and field-based redaction but configuration is application-responsible.
  • Test multi-runtime compatibility (Deno, Node, Bun, browser) in your CI/CD early; zero dependencies reduces conflicts but environment-specific behavior is possible.
  • Review framework integration middleware lifecycle and error handling; framework-specific integrations may have different log capture semantics.

When to avoid it — and what to weigh

  • Legacy Node.js-only codebases requiring mature ecosystem — If your project is Node.js-only and already relies on stable mature loggers (Winston, Pino), switching to a younger library introduces transition risk without runtime diversity gains.
  • Zero tolerance for breaking changes or instability — Project created April 2024 with no tagged release; API may shift during 1.0 stabilization. Not suitable for production systems with strict backwards-compatibility requirements.
  • Pre-existing, deeply integrated logging pipelines — If you have custom Bunyan/Pino/Winston sinks with years of production tuning, adaptor maintenance and feature parity risks may exceed benefits.
  • Complex multi-tenant or real-time log aggregation — No evidence of battle-tested distributed tracing, sampling, or high-volume log routing. Requires custom sink implementation and validation for extreme scale.

License & commercial use

MIT License. Permissive open-source license allowing free use, modification, and distribution in both open-source and proprietary projects without restriction or attribution obligation (though attribution is appreciated).

MIT License permits commercial use without licensing fees or restrictions. No proprietary tiers, enterprise support terms, or usage-based pricing mentioned. Recommend review of any professional support offerings (not stated in data) if SLA/support contract needed.

DEV.co evaluation signals

Editorial assessment — not user reviews. Directional, with an explicit confidence level.

SignalAssessment
MaintenanceActive
DocumentationStrong
License clarityClear
Deployment complexityLow
DEV.co fitStrong
Assessment confidenceHigh
Security considerations

Built-in redaction (pattern and field-based) helps mitigate PII leaks in logs. No audit findings, CVEs, or security certifications provided. Recommend: review redaction configuration in your context, assess sink credential handling (CloudWatch, Sentry, etc.), and perform threat modeling for your log pipeline. No security policy or responsible disclosure statement evident in data.

Alternatives to consider

Pino

Mature, widely-adopted Node.js logger with strong performance benchmarks. Better for Node-only projects; lacks multi-runtime support and library-first philosophy.

Winston

Enterprise-grade, highly configurable transport-based logger with ecosystem maturity. Heavier footprint; designed for single-runtime (Node.js) monoliths.

Bunyan

Structured JSON logging pioneer with simplicity and Unix philosophy. Node.js-only and lower community activity than LogTape; fewer framework integrations.

Software development agency

Build on logtape with DEV.co software developers

Evaluate LogTape for your multi-runtime JavaScript project. Assess API stability, test framework integrations in your environment, and plan migration strategy if adopting for existing codebases.

Talk to DEV.co

Related open-source tools

Surfaced by semantic similarity across the DEV.co open-source index.

logtape FAQ

Does LogTape work in the browser?
Yes. LogTape supports browser environments and provides console-based output formatting. Requires compatible sink (e.g., custom HTTP sink or integration with remote log service).
Can I use LogTape in my library without forcing users to configure logging?
Yes. LogTape's library-first design allows libraries to emit logs without mandatory user setup. Users can configure sinks and levels at the application level.
What is the production readiness status?
Unknown. No stable release (v1.0+) published yet. Project active and growing (1,866 stars) but evaluate API stability and test thoroughly before critical production use.
Can I integrate LogTape with my existing Winston/Pino setup?
Yes. Adaptor packages (@logtape/adaptor-winston, @logtape/adaptor-pino, etc.) enable gradual migration. Test adaptor stability in your load profile before production.

Work with a software development agency

DEV.co is a software development agency delivering custom software development services to companies building on open source. Our software developers and web developers design, integrate, and ship production systems — spanning web development, APIs, AI, data, and cloud. If logtape is part of your open-source observability roadmap, our team can implement, customize, migrate, and maintain it.

Ready to adopt zero-dependency logging?

Evaluate LogTape for your multi-runtime JavaScript project. Assess API stability, test framework integrations in your environment, and plan migration strategy if adopting for existing codebases.