loglevel
npmv1.9.2TypeScriptMinimal lightweight logging for JavaScript, adding reliable log level methods to any available console.log methods
Adopt with care
loglevel is usable, with caveats. Last published 733 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- DMaintenance: grade D, Poor — a real concern.
Last published 733 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 84 KB installed.
- BSupply chain: grade B, Good.
This package has a single maintainer (bus factor of 1).
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding loglevel to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Compatibility
- Node.js
- node >= 0.6.0
- Module format
- CommonJS only
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the loglevel README.
var log = require('loglevel');
log.warn("unreasonably simple");loglevel vs the alternatives
Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| loglevelthis page | 0 | 2 | MIT | 2 years ago |
| loglevel-plugin-prefix | 0 | 1 | MIT | 1 day ago |
| abstract-logging | 0 | 1 | MIT | 1 day ago |
| @open-draft/logger | 0 | 1 | MIT | 1 day ago |
| logkitty | 0 | 1 | MIT | 1 day ago |
| log-symbols | 0 | 1 | MIT | 1 day ago |
Dependencies
Declared by loglevel v1.9.2. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (16)
Used by
Popular packages that depend on loglevel.
Relationship graph
Dependencies (left) and dependents (right) of loglevel.
Frequently installed together
An AST-based pattern checker for JavaScript.
detect possibly catastrophic, exponential-time regular expressions
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
Plugin for loglevel message prefixing
Release history
No releases in the last two years, typically about 91 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.9.2latest | 2 years ago | 84 KB | MIT |
| 1.9.1 | 2 years ago | 624 KB | MIT |
| 1.9.0 | 2 years ago | 624 KB | MIT |
| 1.8.1 | 3 years ago | 136 KB | MIT |
| 1.8.0 | 4 years ago | 136 KB | MIT |
| 1.7.1 | 5 years ago | 133 KB | MIT |
| 1.7.0 | 6 years ago | 133 KB | MIT |
| 1.6.8 | 6 years ago | 131 KB | MIT |
| 1.6.7 | 6 years ago | 131 KB | MIT |
| 1.6.6 | 6 years ago | 130 KB | MIT |
| 1.6.4 | 7 years ago | 127 KB | MIT |
| 1.6.3 | 7 years ago | 127 KB | MIT |
| 1.6.2 | 7 years ago | 126 KB | MIT |
| 1.6.1 | 8 years ago | — | MIT |
| 1.6.0 | 8 years ago | — | MIT |
Overview
loglevel is an npm package that minimal lightweight logging for JavaScript, adding reliable log level methods to any available console.log methods. It has 2 known dependents in the graph. The latest version is 1.9.2, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need minimal lightweight logging for JavaScript, adding reliable log level methods to any available console.log methods and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- Large dependency tree (16 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Funding
Frequently asked questions
Should I use loglevel?
loglevel is usable, with caveats. Last published 733 days ago.
How do I install loglevel?
Run `npm install loglevel` to add loglevel to your npm project.
What license is loglevel released under?
loglevel is distributed under the MIT license.
How popular is loglevel?
npm does not publish download counts. Within PackageGraph's crawl, 2 known packages depend on loglevel.
Is loglevel still maintained?
The most recent release of loglevel (v1.9.2) was published 2 years ago.
Does loglevel run install scripts?
No. loglevel does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.