🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

abstract-logging

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
a

abstract-logging

A noop logger that conforms to the Log4j interface for modules to stub out internal logging

2.0.1
latest
100

Supply Chain Security

100

Vulnerability

76

Quality

76

Maintenance

100

License

Version published
Weekly downloads
2.7M
1.92%
Maintainers
1
Weekly downloads
 
Created
Issues
1

What is abstract-logging?

The abstract-logging npm package provides a minimalistic logging interface that is compatible with the log method signature of the pino logger. It is primarily used as a placeholder logger in modules that expect a logger to be passed to them, allowing developers to use a no-op (no operation) logger when they don't want to perform any logging. This can be useful for testing or for disabling logging in production for performance reasons.

What are abstract-logging's main functionalities?

No-op logger

The abstract-logging package provides a no-op logger with methods that can be called like a normal logger but do not perform any operations. This is useful for disabling logging or for providing a logger to modules that require one without actually logging any messages.

{"logger": {"info": function() {}, "error": function() {}, "debug": function() {}, "fatal": function() {}, "warn": function() {}, "trace": function() {}, "child": function() { return this; }}}

Other packages similar to abstract-logging

FAQs

Package last updated on 17 Oct 2020

Did you know?

Socket

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.

Install

Related posts