# debug-with-levels

> Adds output levels to debug's output but doesn't enforce a level hierarchy and uses the same mechanism as debug for turning levels on and off

Latest version **0.0.2** (published 2018-12-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install debug-with-levels
pnpm add debug-with-levels
yarn add debug-with-levels
bun add debug-with-levels
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-12-30 |
| First published | 2018-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.0.0 |
| Dependencies | 1 |
| Unpacked size | 113.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | codeallthethingz |
| Maintainers | codeallthethingz |
| Keywords | debug, logging |

## Links

- npm: https://www.npmjs.com/package/debug-with-levels
- Repository: https://github.com/codeallthethingz/debug-with-levels
- Issues: https://github.com/codeallthethingz/debug-with-levels/issues
- npm.io page: https://npm.io/package/debug-with-levels

## Dependencies (1)

- [debug](https://npm.io/package/debug.md) ^4.1.1

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 0.0.2 (latest) — 2018-12-30
- 0.0.1 — 2018-12-30

## README

# debug-with-levels

Adds output levels to debug's output but doesn't enforce a level hierarchy and uses the same mechanism as debug for turning levels on and off.

_(Requires node >=10.0.0)_

## Install

```bash
npm install debug-with-levels --save
```

## Usage

See debug package for DEBUG environment variable examples and message formatting: https://www.npmjs.com/package/debug

```js

const log = require('.')('project:function')

log.trace('hello') // project:function:trace hello +0ms
log.debug('hello') // project:function:debug hello +0ms
log.info('hello')  // project:function:info  hello +0ms
log.warn('hello')  // project:function:warn  hello +0ms
log.error('hello') // project:function:error hello +0ms

```

<kbd><img src="example.png"></kbd>

## Run Tests

```bash
npm install
npm test
```

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