# log4js-node/log4js-node

A port of log4js to node.js

Repository: https://github.com/log4js-node/log4js-node
Canonical: https://ross.abutalabs.com/products/log4js-node
Homepage: https://log4js-node.github.io/log4js-node/
Language: JavaScript
License: NOASSERTION
License Family: other
Topics: log4js-node, javascript
Last push: 2026-07-25T20:53:06+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 35, longevity 100
- inputs: {"age_days": 6073, "days_push": 39, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5828, forks 751 (observed 2026-08-28T04:09:30.141402+00:00)

## What it is
log4js-node is a Node.js logging library ported from the log4js framework, offering configurable log levels, categories, layouts, and multiple appenders. It supports console and file logging with rolling, plus optional appenders for services like Logstash, Slack, and SMTP.

## Use cases
- add structured logging to a node.js application
- rotate log files by size or date in node
- log express http requests
- set different log levels per module or category
- ship logs to logstash or loggly from node
- send error logs by email or slack

## When to choose
- you need a mature, configurable logging framework for node.js with categories, levels, and layouts
- you want file log rotation or centralized log shipping via appenders
- you're running clustered node apps and need cluster-aware logging

## When to avoid
- you want a minimal zero-config logger like pino or winston's simpler alternatives
- you need browser/client-side logging - this is node-only
- you expect log4j-compatible behavior, since the API differs

## Facets
- artifact type: library
- maturity: active
- function: logging
- domain: developer-tools, backend
- platform: cli
- tags: log4js, log-appenders, log-rolling, express-middleware, log-levels, nodejs

## Member repositories
- log4js-node/log4js-node (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:30.141402+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-29T17:52:05.800764+00:00, confidence not recorded.
  - readme: https://github.com/log4js-node/log4js-node (fetched 2026-08-28T04:09:30.141402+00:00, sha 71642b6fa436)
  - homepage: https://log4js-node.github.io/log4js-node/ (fetched 2026-08-29T08:47:47.425206+00:00, sha f6295f390fb5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
