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.
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.
- github.com/pimterry/loglevel: Small console logger with level filtering, types, and a plugin hook.
- github.com/pimterry/loglevel/pull/209: Maintainer describes the stable line as frozen while v2 work remains open.
- github.com/pinojs/pino/blob/main/docs/transports.md: Pino provides configurable transports for Node.js logging.
- logtape.org/manual/struct: LogTape provides structured properties and configurable sinks across runtimes.
- peers Pino and LogTape commitsLastYear and latestPublishedAt: Both structured peers published in October 2026 and show more maintenance activity.
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.
- github.com/pimterry/loglevel: Minimal console wrapper with levels; browser-oriented features such as localStorage persistence
- npm-compare.com/@datadog/browser-logs,bunyan,debug,js-logger,log4js,loglevel,pino,winston: Positioned as the lightweight browser option
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.
- github.com/pimterry/loglevel: Browser and Node.js console logging with named loggers and level filters.
- ogi.hashnode.dev/what-is-the-best-nodejs-logging-library: Hands-on comparison shows the gap between console filtering and structured application logs.
- twilio.com/docs/video/troubleshooting/javascript-logger: Twilio documents browser SDK diagnostics built on loglevel.
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.
- github.com/pimterry/loglevel: Feature list: levels, persistence, getLogger, methodFactory plugins, 1.4 KB
- github.com/pimterry/loglevel/issues: Open issues on per-logger plugins, the methodFactory API, worker and test output
- blog.sentry.io/javascript-logging-library-definitive-guide: Current guide covers Pino, Winston and LogTape for cross-runtime use; loglevel is not mentioned
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.
- npmjs.com/package/loglevel?activeTab=readme: Documents the stable API, UMD imports, level persistence, and plugin hook.
- portablejs.com/packages/log: A competing project's benchmark reports low overhead for disabled calls and a 1.6 kB gzipped bundle.
- github.com/beeper/chat-adapter-matrix/issues/5: A downstream user reports that changing the parent level leaves independently configured named loggers verbose.
- ogi.hashnode.dev/what-is-the-best-nodejs-logging-library: Independent TypeScript comparison finds setup easy and structured output dependent on extra work.
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.
- github commitsLastYear, releasesLastYear, latestRelease: Zero commits and releases in the past year, with v1.9.2 published in September 2024.
- github.com/pimterry/loglevel/pull/209: Maintainer describes v1 as frozen and directs the open TypeScript proposal to v2.
- github.com/pimterry/loglevel/pull/210: Maintainer responds to a draft pull request in October 2026 and flags outdated browser tests.
- npmjs.com/package/loglevel?activeTab=dependents: Lists one npm collaborator and advertises commercial support through Tidelift.
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.
- npm downloadsLast4Weeks: 132M now vs 47M a year ago, a ratio of about 2.8, below the median of 4.1
- dependents: 2.9M repos and 2,228 packages; inflated by transitive use
- apache.googlesource.com/nifi-fds/+/6435e394f6c7c31d3f61a4bfc9702bde2a1659fa/node_modules/loglevel/package.json: Pulled in by webpack-dev-server in older installs
- bluesky posts: 0 Bluesky posts and 0 HN stories; little current attention
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.
- dependents repos and packages; peers dependentRepos: 2,916,090 repositories and 2,228 packages in the collector's coverage.
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo; medianDownloadsRatio; peers Pino: Downloads grew 2.8× against a 4.1× catalog median and Pino's 5.1×.
- github.com/twilio/twilio-voice.js/blob/master/package.json: The Twilio Voice SDK installs loglevel as a dependency.
- npmjs.com/package/loglevel?activeTab=readme: Supports CDN and direct script loading outside npm.
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.
- blog.sentry.io/javascript-logging-library-definitive-guide: Current guide does not include loglevel
- infinum.com/handbook/frontend/logging: Frontend handbook standardizes on Pino, even for the browser
- dependents packages: 2,228 npm packages depend on it
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.
- twilio.com/docs/video/troubleshooting/javascript-logger: Twilio documents loglevel as the SDK logger used for frontend diagnostics.
- github.com/matrix-org/matrix-js-sdk/blob/develop/src/logger.ts: Matrix implements its SDK logger on top of loglevel.
- ogi.hashnode.dev/what-is-the-best-nodejs-logging-library: Independent hands-on comparison confirms ease of integration and limited built-in output options.
- 2025.stateofjs.com/en-US/other-tools: The survey supplies no project-specific satisfaction or retention figure.
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.
- npm dependencies and license; advisories total: Zero runtime dependencies, MIT licence, and zero recorded OSV advisories.
- scorecard score and checks: 3.3 overall, with zeroes for branch protection, token permissions, pinned dependencies, and security policy.
- github.com/pimterry/loglevel/security/policy: GitHub shows no SECURITY.md.
- npmjs.com/package/loglevel?activeTab=dependents: Documents a manual npm publish step and lists one npm collaborator.
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.