# ilp-logger

> Logging utility for Interledger modules

Latest version **1.4.5-alpha.2** (published 2022-09-28) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install ilp-logger
pnpm add ilp-logger
yarn add ilp-logger
bun add ilp-logger
```

## Health

**Score 25/100 (F)** — status: abandoned.

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.5-alpha.2 |
| Published | 2022-09-28 |
| First published | 2018-06-21 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Interledger Team |
| Maintainers | interledger, sharafian |

## Links

- npm: https://www.npmjs.com/package/ilp-logger
- npm.io page: https://npm.io/package/ilp-logger

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) ^4.3.4
- [@types/debug](https://npm.io/package/@types/debug.md) ^4.1.7
- [supports-color](https://npm.io/package/supports-color.md) ^9.2.2

## Recent versions

- 1.4.5-alpha.2 (latest) — 2022-09-28
- 1.4.5-alpha.1 — 2022-05-04
- 1.4.5-alpha.0 — 2022-04-27
- 1.4.4 — 2021-10-07
- 1.4.2 — 2020-07-27
- 1.3.1 — 2020-06-15
- 1.3.0-alpha.1 — 2019-11-08
- 1.3.0-alpha.0 — 2019-10-08
- 1.2.1 — 2019-09-23
- 1.2.0 — 2019-09-23
- 1.1.3 — 2018-11-28
- 1.1.2 — 2018-09-12
- 1.1.1 — 2018-09-12
- 1.1.0 — 2018-09-12
- 1.0.2 — 2018-08-02
- … 2 more at https://npm.io/package/ilp-logger/versions

## README

# ilp-logger

> Debug Logging utility for Interledger modules

[![NPM Package](https://img.shields.io/npm/v/ilp-logger.svg?style=flat)](https://npmjs.org/package/ilp-logger)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Usage

### JavaScript

```js
const logger = require('ilp-logger')('DEBUG_NAMESPACE')
```

### TypeScript

```ts
import createLogger from 'ilp-logger'
const logger = createLogger('DEBUG_NAMESPACE')

logger.info('Informational output.')
logger.warn('Something you want to warn for.')
logger.error('Something error-relevant.')
logger.debug('Extra but useful information.')
logger.trace('Superflous to normal output, but useful for detailed logs.')
```

## Project

This project is a good template for new Interledger.js projects. Use the structure as is and provide your code and tests.

### Folders

All source code is expected to be TypeScript and is placed in the `src` folder. Tests are put in the `test` folder.

The NPM package will not contain any TypeScript files (`*.ts`) but will have typings and source maps.

### Scripts

- `clean` : Cleans the build folder and test output
- `build` : Build the project
- `lint` : Run the linter over the project
- `test` : Run the unit tests and produce a code coverage report

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