# tslog: 6.5 out of 10

Reasonable, with limits. 3rd of 9 in [Logging libraries](https://elestia.ai/opensource/logging/index.md).

tslog is a TypeScript-first logger with no dependencies. It runs on Node, Bun, Deno, browsers and workers, and gives pretty output in development and JSON in production. It is well kept and has many features, but it has little outside validation, one person publishes it, and the 2026 v5 rewrite broke existing code. That makes it a reasonable choice, not a default: Pino is safer for Node services and LogTape is stronger for code that runs everywhere.

**Best for:** TypeScript developers who want readable pretty logs, built-in masking and one logger across Node, Bun, Deno and the browser.

## Scores

- **Overall: 6.5** (likely 5.4 to 7.5)
  - Claude Opus 5.5 (5.5): tslog is an active, dependency-free, nice-to-use logger with good TypeScript and multi-runtime support. It is held back by one maintainer, a fresh breaking rewrite, no public benchmarks and little independent validation. For Node services Pino is the safer pick, and LogTape competes directly on universal TypeScript logging with much more activity.
  - GPT-6.2 Sol (7.4): tslog is a strong pick when one typed API needs to serve readable development logs and structured production logs across runtimes. Pino remains the better default for high-throughput Node.js services, and LogTape is a better fit when library authors want the host app to control log routing. Active releases support choosing tslog today, while the recent rewrite, single listed npm collaborator, and limited independent performance data leave more uncertainty about the long term.
- **Needed by many: 7.2** (likely 6.1 to 8.2)
  - Claude Opus 5.5 (7.0): Most apps need logging, and tslog works on the server, in the browser and on edge runtimes. Its TypeScript-first, pretty-by-default approach suits a large group of developers, but since v5 it is ESM-only and needs Node 22 or later, which leaves out older CJS codebases.
  - GPT-6.2 Sol (7.3): Structured logging is useful across web services, browser apps, workers, and command-line tools. tslog covers a broad set of runtimes without tying teams to a framework. The range reflects uncertainty about how many projects need structured logs or shared logging code beyond the built-in console.
- **Helps a lot: 7.3** (likely 6.2 to 8.3)
  - Claude Opus 5.5 (6.5): It has many features built in: pretty and JSON output, masking, child loggers, middleware, file, HTTP and worker transports, source-mapped errors, OTel and pino presets, and an llms.txt file for coding agents. Performance is not benchmarked in public. The v5 rewrite is only a few months old, and Pino's transport ecosystem and record under load are stronger. Little independent use is reported, so the range is wide.
  - GPT-6.2 Sol (8.0): Version 5.5.0 combines readable output, flat JSON, source-mapped errors, and configurable transports behind a typed API. Worked examples, typed configuration, and bundled agent documentation make the current API easier to use, though agent accuracy is unmeasured. Node JSON mode batches writes and skips stack capture by default, but published benchmarks do not establish how tslog 5.5.0 compares with Pino or LogTape under load.
- **Holds up over time: 6.5** (likely 5.1 to 7.9)
  - Claude Opus 5.5 (6.0): Activity is high: 198 commits and 9 releases in the last year, and no open issues. But one maintainer publishes all releases and no funding is visible. The July 2026 rewrite broke v4 code, and the 5.2 minor dropped a Node version, so upgrades can break.
  - GPT-6.2 Sol (7.0): The project shipped nine releases and made 198 commits in the past year, and a recent user-reported masking bug went from report to release in two days. The v5 rewrite changed configuration and JSON output, and v5.2 raised the Node.js minimum from 20 to 22. npm lists one collaborator, and the repository solicits sponsorship without establishing how much maintenance it funds.
- **Used widely: 4.2** (likely 3.1 to 5.4)
  - Claude Opus 5.5 (4.5): Downloads grew about 9x in a year, to 6.7M per 4 weeks, which is well above the 4.1 median ratio. That jump probably comes partly from a package that installs tslog, not only from direct choices. Dependents (1,357 repos) are a small fraction of Pino's 66k or winston's 286k. It has no Hacker News or Bluesky attention.
  - GPT-6.2 Sol (3.9): Four-week downloads grew 9.1-fold to 6.67 million, ahead of the catalog's 4.1-fold median and Pino's 5.1-fold growth, with LogTape growing faster from a smaller base. ecosyste.ms found 1,357 dependent repositories and 407 packages, and the bundle recorded no matched Hacker News or Bluesky activity. I infer that OpenClaw accounts for some installs, and older v4 releases still made up most of the downloads shown in npm's version snapshot. The share of growth attributable to projects choosing tslog directly remains uncertain.
- **Vouched for: 4.3** (likely 3.2 to 5.7)
  - Claude Opus 5.5 (3.0): I found no named production users, no survey presence, no independent benchmarks and no frameworks built on it. The only third-party write-ups are listing or marketing pages. The modest dependent count is weak indirect evidence of use.
  - GPT-6.2 Sol (5.6): OpenClaw ships tslog v5 as a runtime dependency, and LogLayer offers a dedicated transport. User reports support its appeal for cross-runtime logging, though some predate the v5 rewrite. Current evidence is strongest for one prominent downstream user, with limited coverage from surveys and independent benchmarks.
- **Safe: 7.0** (likely 5.8 to 8.1)
  - Claude Opus 5.5 (7.0): It has zero runtime dependencies, no known advisories and an MIT licence, so the attack surface is small. The Scorecard is 4.6: code review, token permissions, security policy and SAST all score 0, and one maintainer publishes releases. That is a single point of failure for the supply chain.
  - GPT-6.2 Sol (6.9): The MIT-licensed package has zero runtime dependencies and zero OSV advisories in the snapshot. Version 5.5.0 fixed a user-reported redaction bug within two days, and secret masking requires explicit configuration in v5. A 4.6 OpenSSF Scorecard, weak code-review and workflow-token checks, a missing security policy, and one listed npm collaborator limit confidence in the release process.

## Good

- It has no runtime dependencies, ships its own types, and offers a slim entry point of about 10KB gzipped.
- It gives pretty console output, structured JSON, sub-loggers and secret masking in one package, with no plugins.
- One API works on Node, Bun, Deno, browsers, Cloudflare Workers and React Native.
- It is actively developed: 9 releases and about 200 commits in the last year, with no open issues.

## Bad

- v5 is ESM-only and changed the config and the JSON shape, so upgrading from v4 takes a migration.
- The 5.2 minor release dropped Node 20, so it now needs Node 22 or later.
- There are no published benchmarks. For high-volume Node logging, Pino has a stronger performance record and more transports.
- Its ecosystem is small, it has little independent coverage, and one maintainer publishes every release.

## The numbers

- Downloads, 4 weeks: 6.7M
- In a year: ×9.1
- GitHub stars: 1.8k
- Commits, 12 months: 198
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/fullstack-build/tslog
- npm: https://www.npmjs.com/package/tslog

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
