# pimterry/loglevel

:ledger: Minimal lightweight logging for JavaScript, adding reliable log level methods to wrap any available console.log methods

Repository: https://github.com/pimterry/loglevel
Canonical: https://ross.abutalabs.com/products/loglevel
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, logging, lightweight, loglevel, stack-traces, setlevel
Last push: 2025-03-20T15:13:43+00:00

## Health v2 (maintenance only)
Score: 28/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 12, release rhythm 8, longevity 100
- inputs: {"age_days": 4911, "days_push": 531, "days_rel": 726, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2747, forks 160 (observed 2026-08-28T04:07:17.463705+00:00)

## What it is
loglevel is a minimal, lightweight JavaScript logging library that adds reliable level-based logging (trace/debug/info/warn/error) on top of the console object. It works in browsers, Node.js, and other JS environments, preserving stack traces and line numbers while gracefully handling missing console support.

## Use cases
- add leveled logging to a JavaScript app
- filter console logs by severity in production
- replace console.log with a reliable logger that keeps line numbers
- lightweight browser logging library with no dependencies
- enable trace-level debugging in the console during development
- log safely in environments without a console object

## When to choose
- you want barebones, dependable console logging with level filtering
- bundle size matters and you need a tiny zero-dependency logger
- you need logging that preserves stack traces and line numbers
- you need consistent logging across browsers and Node.js

## When to avoid
- you need appenders, transports, or structured log shipping to external services
- you need complex filtering rules or plugin-based logging pipelines
- you want file-based or server-side log output rather than console

## Facets
- artifact type: library
- maturity: stable
- function: logging
- domain: developer-tools, web-development, frontend
- platform: browser
- tags: console-logging, log-levels, lightweight, zero-dependency, nodejs, javascript

## Member repositories
- pimterry/loglevel (main) score 28

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:17.463705+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:19:01.460392+00:00, confidence not recorded.
  - readme: https://github.com/pimterry/loglevel (fetched 2026-08-28T04:07:17.463705+00:00, sha 3c16c8892c8b)
  - registry_npm: https://registry.npmjs.org/loglevel (fetched 2026-08-29T09:57:14.153599+00:00, sha 8d6cf441e4d2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
