# @uma/logger

> Logger library

Latest version **1.3.3** (published 2025-09-24) · AGPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install @uma/logger
pnpm add @uma/logger
yarn add @uma/logger
bun add @uma/logger
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.3.3 |
| Published | 2025-09-24 |
| First published | 2023-11-13 |
| Weekly downloads | 0 |
| License | AGPL-3.0-or-later |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 13 |
| Unpacked size | 121.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 486 |
| Maintainers | mrice32, chrismaree, evaldofelipe, nicholaspai |

## Links

- npm: https://www.npmjs.com/package/@uma/logger
- Repository: https://github.com/UMAprotocol/protocol
- Homepage: https://umaproject.org
- Issues: https://github.com/UMAprotocol/protocol/issues
- npm.io page: https://npm.io/package/@uma/logger

## Dependencies (13)

- [web3](https://npm.io/package/web3.md) ^1.6.0
- [bn.js](https://npm.io/package/bn.js.md) ^4.11.9
- [redis](https://npm.io/package/redis.md) ^4.6.13
- [dotenv](https://npm.io/package/dotenv.md) ^9.0.0
- [winston](https://npm.io/package/winston.md) ^3.2.1
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [discord.js](https://npm.io/package/discord.js.md) ^14.11.0
- [superstruct](https://npm.io/package/superstruct.md) ^1.0.3
- [node-pagerduty](https://npm.io/package/node-pagerduty.md) ^1.2.0
- [@pagerduty/pdjs](https://npm.io/package/@pagerduty/pdjs.md) ^2.2.4
- [winston-transport](https://npm.io/package/winston-transport.md) ^4.3.0
- [@google-cloud/trace-agent](https://npm.io/package/@google-cloud/trace-agent.md) ^5.1.6
- [@google-cloud/logging-winston](https://npm.io/package/@google-cloud/logging-winston.md) ^4.1.1

## Recent versions

- 1.3.3 (latest) — 2025-09-24
- 1.3.1 — 2025-07-15
- 1.3.0 — 2024-07-20
- 1.2.0 — 2024-04-30
- 1.1.0 — 2023-11-13
- 1.0.0 — 2023-11-13

## README

# @uma/logger

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

## Installing the package

```bash
yarn add @uma/logger
```

## Importing the package

The [Logger](./src/logger) directory contains helpers and factories for logging with Winston. To get the default
logger:

```js
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](./src/helpers/delay.js): simple file containing a function to "sleep".

---
_Source: https://npm.io/package/@uma/logger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
