@uma/logger
TypeScript icon, indicating that this package has built-in type declarations

1.3.0 • Public • Published

@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".

/@uma/logger/

    Package Sidebar

    Install

    npm i @uma/logger

    Weekly Downloads

    94

    Version

    1.3.0

    License

    AGPL-3.0-or-later

    Unpacked Size

    120 kB

    Total Files

    40

    Last publish

    Collaborators

    • mrice32
    • chrismaree
    • evaldofelipe
    • daywiss
    • nicholaspai