</>PackageGraphPackageGraph

loglevel

npmv1.9.2TypeScript

Minimal 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.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

84 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

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.

javascriptFull 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.

PackageWeekly downloadsDependentsLicenseLast release
loglevelthis page02MIT2 years ago
loglevel-plugin-prefix01MIT1 day ago
abstract-logging01MIT1 day ago
@open-draft/logger01MIT1 day ago
logkitty01MIT1 day ago
log-symbols01MIT1 day ago

Dependencies

Declared by loglevel v1.9.2. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (16)

@types/core-js 2.5.0@types/node ^12.0.4grunt ~1.5.3grunt-cli ^1.4.3grunt-contrib-clean ^1.1.0grunt-contrib-concat ~0.5.0grunt-contrib-connect ^3.0.0grunt-contrib-jasmine ^4.0.0grunt-contrib-jshint ^3.2.0grunt-contrib-uglify ^3.4.0grunt-contrib-watch ^1.1.0grunt-open ~0.2.3grunt-preprocess ^5.1.0jasmine ^2.4.1ts-node ^10.9.2typescript ^3.5.1

Used by

Popular packages that depend on loglevel.

Relationship graph

Dependencies (left) and dependents (right) of loglevel.

@wdio/loggerloglevel-plugin-p…loglevel
loglevel dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 91 days apart.

Recent versions of loglevel
VersionPublishedSizeLicense
1.9.2latest2 years ago84 KBMIT
1.9.12 years ago624 KBMIT
1.9.02 years ago624 KBMIT
1.8.13 years ago136 KBMIT
1.8.04 years ago136 KBMIT
1.7.15 years ago133 KBMIT
1.7.06 years ago133 KBMIT
1.6.86 years ago131 KBMIT
1.6.76 years ago131 KBMIT
1.6.66 years ago130 KBMIT
1.6.47 years ago127 KBMIT
1.6.37 years ago127 KBMIT
1.6.27 years ago126 KBMIT
1.6.18 years agoMIT
1.6.08 years agoMIT

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

Keywords

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.