
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
noop-logger
Advanced tools
The noop-logger npm package provides a 'no-operation' logger, which means it's a logger that does nothing. It's useful for providing a logger interface that can be used in environments where logging is not desired or necessary, such as in testing or when running in production where you might not want to output logs.
No-operation logging
The noop-logger package provides methods that mimic the standard logging methods such as log, info, warn, and error, but they do not perform any action when called.
{"log": noop-logger.log, "info": noop-logger.info, "warn": noop-logger.warn, "error": noop-logger.error}
Abstract-logging provides a no-op logger that is API compatible with Pino's log methods. It's useful for when you want to have a logger that can be swapped with Pino without changing the logging interface.
Bunyan-blackhole is a no-op logger for the Bunyan logging framework. It's designed to consume and discard all log messages, similar to noop-logger, but specifically tailored for Bunyan.
A logger that does exactly nothing, useful when you want to test modules that require a logger to be passed in.
$ npm install noop-logger
Exposes the following noops:
logger.debug
logger.info
logger.warn
logger.error
logger.critical
logger.alert
logger.emergency
logger.notice
logger.fatal
MIT
FAQs
A logger that does exactly nothing.
The npm package noop-logger receives a total of 423,249 weekly downloads. As such, noop-logger popularity was classified as popular.
We found that noop-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.