@uma/logger is a specialized logger package optimized for minimal dependencies, ensuring compatibility and ease of integration.
yarn add @uma/logger
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,
})
There are two helper files that are available in logger:
- delay.js: simple file containing a function to "sleep".