loglevel
npmv1.9.2TypeScriptMinimal lightweight logging for JavaScript, adding reliable log level methods to any available console.log methods
Overview
loglevel is an npm package that minimal lightweight logging for JavaScript, adding reliable log level methods to any available console.log methods. 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.
Relationship graph
Dependencies (left) and dependents (right) of loglevel.
Dependencies
Dev (16)
Used by
Popular packages that depend on loglevel.
Alternatives to loglevel
Plugin for loglevel message prefixing
A noop logger that conforms to the Log4j interface for modules to stub out internal logging
Environment-agnostic, ESM-friendly logger for simple needs.
Lightweight debugging utility for Node.js and the browser
Browser-friendly inheritance fully compatible with standard node.js inherits()
JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes
Lightweight browser detector
LRU and FIFO caches for Client or Server
Parse and format xcodebuild logs
Browser running for Vitest using webdriverio
Converts a source-map from/to different formats and allows adding/changing properties.
Browser running for Vitest
Frequently installed together
detect possibly catastrophic, exponential-time regular expressions
An AST-based pattern checker for JavaScript.
BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
Plugin for loglevel message prefixing
Version history
| Version | Published | License |
|---|---|---|
| 1.9.2latest | 1 year ago | MIT |
| 1.9.1 | 2 years ago | MIT |
| 1.9.0 | 2 years ago | MIT |
| 1.8.1 | 3 years ago | MIT |
| 1.8.0 | 4 years ago | MIT |
| 1.7.1 | 5 years ago | MIT |
| 1.7.0 | 5 years ago | MIT |
| 1.6.8 | 6 years ago | MIT |
| 1.6.7 | 6 years ago | MIT |
| 1.6.6 | 6 years ago | MIT |
| 1.6.4 | 6 years ago | MIT |
| 1.6.3 | 7 years ago | MIT |
| 1.6.2 | 7 years ago | MIT |
| 1.6.1 | 8 years ago | MIT |
| 1.6.0 | 8 years ago | MIT |
| 1.5.1 | 8 years ago | MIT |
| 1.5.0 | 8 years ago | MIT |
| 1.4.1 | 10 years ago | MIT |
| 1.4.0 | 11 years ago | MIT |
| 1.3.1 | 11 years ago | MIT |
Maintainers
Funding
Frequently asked questions
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?
loglevel has approximately 0 downloads per week and 1 known dependent packages.