abstract-logging
npmv2.0.1A noop logger that conforms to the Log4j interface for modules to stub out internal logging
Not recommended for new projects
No — abstract-logging should not be adopted for new projects. Last published 2153 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- FMaintenance: grade F, Failing.
Last published 2153 days ago.
- AWeight: grade A, Excellent.
Zero runtime dependencies, about 2.2 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 abstract-logging 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
- No constraint declared
- Module format
- CommonJS only
- TypeScript
- No bundled types
- Install scripts
- None
Quick start
A usage example from the abstract-logging README.
'use strict'
function AwesomeLibrary (options) {
this.log = (options.logger) ? options.logger : require('abstract-logging')
}
AwesomeLibrary.prototype.coolMethod = function () {
this.log.trace('AwesomeLibrary.coolMethod was invoked')
return {}
}
module.exports = AwesomeLibraryabstract-logging 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 |
|---|---|---|---|---|
| abstract-loggingthis page | 0 | 1 | MIT | 5 years ago |
| loglevel | 0 | 2 | MIT | 1 day ago |
| loglevel-plugin-prefix | 0 | 1 | MIT | 1 day ago |
| @open-draft/logger | 0 | 1 | MIT | 1 day ago |
| log-symbols | 0 | 1 | MIT | 1 day ago |
| logkitty | 0 | 1 | MIT | 1 day ago |
Used by
Popular packages that depend on abstract-logging.
Relationship graph
Dependencies (left) and dependents (right) of abstract-logging.
Frequently installed together
An HTTP/1.1 client, written from scratch for Node.js
Create HTTP error objects
An AST-based pattern checker for JavaScript.
Manipulate the HTTP Vary header
Really Fast Deep Clone
A small utility for creating warnings and emitting them.
Build and manage the fast-json-stringify instances for the fastify framework
Fake HTTP injection library
LRU and FIFO caches for Client or Server
Build and manage the AJV instances for the fastify framework
A small utility, used by Fastify itself, for generating consistent error objects across your codebase and plugins.
Determine the address of a proxied request
Release history
No releases in the last two years, typically about 1119 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 2.0.1latest | 5 years ago | 2.2 KB | MIT |
| 2.0.0 | 6 years ago | 1.9 KB | MIT |
| 1.0.0 | 10 years ago | — | MIT |
Overview
abstract-logging is an npm package that a noop logger that conforms to the Log4j interface for modules to stub out internal logging. It has 1 known dependents in the graph. The latest version is 2.0.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need a noop logger that conforms to the Log4j interface for modules to stub out internal logging and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Clear open-source license (MIT).
- Zero runtime dependencies — minimal footprint.
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Maintainers
Frequently asked questions
Should I use abstract-logging?
No — abstract-logging should not be adopted for new projects. Last published 2153 days ago.
How do I install abstract-logging?
Run `npm install abstract-logging` to add abstract-logging to your npm project.
What license is abstract-logging released under?
abstract-logging is distributed under the MIT license.
How popular is abstract-logging?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on abstract-logging.
Is abstract-logging still maintained?
The most recent release of abstract-logging (v2.0.1) was published 5 years ago.
Does abstract-logging run install scripts?
No. abstract-logging does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.