# loglevel: 5.4 out of 10

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

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.

## Scores

- **Overall: 5.4** (likely 4.3 to 6.5)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (6.2): 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 many: 5.5** (likely 4.4 to 6.7)
  - Claude Opus 5.5 (5.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): 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 lot: 5.5** (likely 4.5 to 6.6)
  - Claude Opus 5.5 (4.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): 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 time: 4.5** (likely 3.3 to 6.1)
  - Claude Opus 5.5 (4.0): 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.
  - GPT-6.2 Sol (4.9): 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 widely: 6.7** (likely 5.4 to 7.9)
  - Claude Opus 5.5 (6.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): 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 for: 5.6** (likely 4.5 to 6.9)
  - Claude Opus 5.5 (4.0): 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): 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.
- **Safe: 7.1** (likely 6.0 to 8.3)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (7.2): 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

- Downloads, 4 weeks: 132M
- In a year: ×2.8
- GitHub stars: 2.7k
- Commits, 12 months: 0
- Last npm release: Sept 2024
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/pimterry/loglevel
- npm: https://www.npmjs.com/package/loglevel

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.
