# num-easy-log

> Wrapper for a logging package.

Latest version **0.0.2** (published 2022-02-09) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install num-easy-log
pnpm add num-easy-log
yarn add num-easy-log
bun add num-easy-log
```

## Health

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

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2022-02-09 |
| First published | 2022-02-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 18.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | NUM Technology Ltd |
| Maintainers | twalmsley |

## Links

- npm: https://www.npmjs.com/package/num-easy-log
- Repository: https://github.com/NUMtechnology/easy-log
- Homepage: https://github.com/NUMtechnology/easy-log#readme
- Issues: https://github.com/NUMtechnology/easy-log/issues
- npm.io page: https://npm.io/package/num-easy-log

## Dependencies (1)

- [pino](https://npm.io/package/pino.md) ^7.6.5

## Recent versions

- 0.0.2 (latest) — 2022-02-09
- 0.0.1 — 2022-02-09

## README

# Easy Logger

A simple wrapper for logging packages that supports switching to simple console logging to disable the underlying logging package.

By default logging uses `pino`, but `pino` can be bypassed by calling `setConsoleOnly(true)`

`npm install num-easy-log`

```JavaScript
const easylog = require('num-easy-log');

const log = easylog.log;

// Logs using pino JSON format
log.error('Error message 1');

// Set the logging level and switch to console-only logging to bypass pino.
log.setLevel(easylog.Level.error);
log.setConsoleOnly(true);

// Logs using plain console logs.
log.info('Should not see this.');
log.error('Error message 2');
```

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