@risk-labs/logger
v1.3.11
Published
Logger library
Downloads
1,474
Readme
@risk-labs/logger
@risk-labs/logger is a specialized logger package optimized for minimal dependencies, ensuring compatibility and ease of integration.
@risk-labs/logger initially was maintained as a part of UMAProtocol/protocol repo and tag @uma/[email protected] is the last common version for these logger implementations.
Installing the package
yarn add @risk-labs/loggerImporting the package
The Logger directory contains helpers and factories for logging with Winston. To get the default logger:
const { Logger } = require("@risk-labs/logger")
// You can also log directly using the winston logger.
Logger.debug({
at: "createPriceFeed",
message: "Creating CryptoWatchPriceFeed",
otherParam: 5,
})