Socket
Socket
Sign inDemoInstall

@uma/logger

Package Overview
Dependencies
677
Maintainers
5
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @uma/logger

Logger library


Version published
Weekly downloads
81
decreased by-18.18%
Maintainers
5
Created
Weekly downloads
 

Readme

Source

@uma/logger

@uma/logger is a specialized logger package optimized for minimal dependencies, ensuring compatibility and ease of integration.

Installing the package

yarn add @uma/logger

Importing the package

The Logger directory contains helpers and factories for logging with Winston. To get the default logger:

const { Logger } = require("@uma/logger")

// You can also log directly using the winston logger.
Logger.debug({
  at: "createPriceFeed",
  message: "Creating CryptoWatchPriceFeed",
  otherParam: 5,
})

Helpers

There are two helper files that are available in logger:

  • delay.js: simple file containing a function to "sleep".

FAQs

Last updated on 30 Apr 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc