Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

abstract-logging

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstract-logging

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


Version published
Weekly downloads
1.9M
decreased by-3.75%
Maintainers
1
Weekly downloads
 
Created

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

Keywords

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc