Elestia Open Source Ratings
5.4

loglevel

Reasonable, with limits. 6th of 9 logging libraries.

loglevel is a tiny (about 1.4 KB gzipped), zero-dependency wrapper around console that adds log levels, named loggers and saved levels, mainly for browser code. It is stable and safe, but it has had no commits or releases since early 2025 and offers no structured output. Pick it for simple browser log levels. For structured logging, pick Pino or LogTape.

Best for: Browser apps or libraries that only need level-filtered console logging with no dependencies and almost no bundle cost.

GitHubnpm

Scores

Overall5.4

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 4.5, likely 3.5 to 5.5

loglevel is a safe, tiny, finished tool for adding levels to browser console logging, and it still works. But it does not do structured logging, it has stalled, and its share is falling. For a new project, LogTape or Pino's browser mode covers the same need plus structure. Keep it where it already runs, or use it when a minimal browser-only level filter is truly all you need.

  • npm downloadsLast4Weeks: Growth below the median
  • github commitsLastYear: No activity in the last year
  • blog.sentry.io/javascript-logging-library-definitive-guide: Current guides recommend LogTape for cross-runtime use and Pino for Node
  • peers LogTape: 906 commits last year, with fast download growth

GPT-6.2 Sol: 6.2, likely 5.1 to 7.4

loglevel is a good fit when the job is to add levels to browser console output with very little code or bundle weight. For new projects that need structured logs, Pino is a stronger choice on Node.js and LogTape is a stronger choice across runtimes. The frozen v1 line and uncertain timing of v2 reduce confidence in future fixes.

Needed by many5.5

How many developers need a tool for this job?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

Logging in general is needed by most JS developers. loglevel's take is narrower: plain level filtering over console, mostly in browser code. Server teams that need structured logs are not its audience, which keeps it below the category's full breadth.

GPT-6.2 Sol: 6.0, likely 4.7 to 7.3

Level filtering is useful in browser apps, SDKs, and Node.js tools, and loglevel works across frameworks. Its console-first approach fits a smaller share of projects than logging in general because teams that collect and query application logs need structured records. The share of developers who only need console filtering is hard to measure.

Helps a lot5.5

How well does it do the job for those who need it?

Claude Opus 5.5: 4.5, likely 3.5 to 5.5

It does its small job well: reliable level methods, preserved stack line numbers, named loggers, types and no dependencies. But it has no structured or JSON logging, no transports and no redaction, which peers such as Pino and LogTape provide. Plugins hook in through a clunky methodFactory API. Its API is simple, so AI agents write correct code for it easily.

GPT-6.2 Sol: 6.5, likely 5.4 to 7.7

Version 1.9.2 offers fast level filtering, persisted browser settings, and a small, documented API with TypeScript declarations. The API is easy to use for ordinary log calls, though import syntax and level inheritance can trip up developers and coding agents. Structured records and transports require extra code, and the available performance measurements cover simple calls rather than end-to-end logging.

Holds up over time4.5

Will it still be a good choice in two years?

Claude Opus 5.5: 4.0, likely 3.0 to 5.5

There have been no commits since March 2025 and no release since v1.9.2 in September 2024. One maintainer, funded only through sponsorship and Tidelift, carries it. The code is small and feature-complete, so it is unlikely to break, but new issues get little response, and the ecosystem is moving towards structured, cross-runtime loggers such as LogTape and Pino.

  • github commitsLastYear: 0 commits and 0 releases in the last year
  • github pushedAt: Last push 2025-03-20
  • scorecard Maintained: Maintained check scores 0
  • github.com/pimterry/loglevel/issues: Recent issues from 2024-2025 have at most one comment

GPT-6.2 Sol: 4.9, likely 3.5 to 6.6

The last stable release shipped in September 2024, and the bundle records zero commits and releases in the past year. The maintainer calls v1 frozen and still responds to pull requests, but the TypeScript proposal for v2 remains open. The small API and listed commercial support help, while a single listed npm collaborator and uncertain v2 timing leave future fixes harder to predict.

Used widely6.7

How many use it, and is that growing?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

It has 132M downloads in 4 weeks and ecosyste.ms counts about 2.9M dependent repos, but much of that comes from other packages and old toolchains that install it, such as older webpack-dev-server. Its download ratio of 2.8 is below the 4.1 median, so it is losing share. Direct choices are likely in the tens to low hundreds of thousands of projects.

GPT-6.2 Sol: 7.3, likely 5.8 to 8.8

ecosyste.ms found 2.92 million dependent repositories, the highest count in the peer set, and 2,228 dependent packages. CI and downstream packages contribute to downloads, and direct script-tag use can bypass npm, so direct adoption is hard to isolate. Downloads rose from 47.1 million to 132.1 million in four weeks, but growth of 2.8× trails the 4.1× catalog median and Pino's 5.1×. That points to a loss of relative momentum despite the large footprint.

Vouched for5.6

Who stands behind it being good?

Claude Opus 5.5: 4.0, likely 3.0 to 5.5

Many libraries have embedded it for years, which shows trust in its correctness for a small job. Current independent comparisons and guides mostly skip it and recommend Pino, Winston or LogTape. There are no survey results and no recent write-ups by users.

GPT-6.2 Sol: 7.1, likely 6.0 to 8.2

Twilio Video exposes loglevel through its JavaScript SDK, and the Matrix JavaScript SDK uses it for its own logging. A hands-on comparison found it easy to integrate and flagged its reliance on plugins. Current integrations are a stronger signal than the older comparison, while recent survey evidence on satisfaction is thin.

Safe7.1

How safe is it to depend on?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

It has zero dependencies, a single small file, no known advisories ever, and an MIT licence. The attack surface is very small. Weak points are the 3.3 Scorecard (no branch protection, security policy or pinned dependencies) and publishing by a single maintainer.

  • advisories total: No OSV advisories
  • npm dependencies: 0 runtime dependencies
  • scorecard score: 3.3; Branch-Protection, Security-Policy and Token-Permissions all score 0
  • npm license: MIT

GPT-6.2 Sol: 7.2, likely 5.9 to 8.5

Zero runtime dependencies and a permissive MIT licence keep dependency risk low, and OSV lists no advisories. The 3.3 OpenSSF Scorecard flags weak branch protection, token permissions, and dependency pinning, and GitHub shows no published security policy. The documented manual npm release process and single listed collaborator make it harder to judge how quickly a future issue would be handled.

Good

  • Single file with zero dependencies, about 1.4 KB gzipped, with bundled TypeScript types.
  • Keeps the original file and line numbers in devtools because it binds directly to console methods.
  • Named loggers, and levels saved in localStorage or cookies, make it easy to turn logging up in a deployed browser app.
  • A very stable API: the 1.x line has barely changed in years, so upgrades rarely break code.

Bad

  • No structured or JSON output, no transports and no redaction, so it covers only half of the category's job.
  • No commits or releases since early 2025, and long-standing issues such as per-logger plugins and a 2.0 plan remain open.
  • Adding prefixes or remote shipping depends on small third-party plugins that patch methodFactory.
  • Not built for server logging. Node services are better served by Pino or winston.

The numbers

npm downloads, 4 weeks
132M ×2.8 in a year
GitHub stars
2.7k
Commits, 12 months
0
npm version
1.9.2 Sept 2024
Versions, 12 months
0
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
3.3 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (pimterry/loglevel), npm (loglevel), OSV and the OpenSSF Scorecard.

Logging libraries

  1. 8.7Pino
  2. 7.7LogTape
  3. 6.5tslog
  4. 6.3winston
  5. 5.9Consola
  6. 5.4loglevel
  7. 4.5debug
  8. 4.4log4js
  9. 3.4Bunyan
Compare all 9 on six scores