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