# simple-winston-logger-abstraction

> logger abstraction for winston

Latest version **2.2.1** (published 2022-01-05) · WTFPL license · 0 weekly downloads

## Install

```sh
npm install simple-winston-logger-abstraction
pnpm add simple-winston-logger-abstraction
yarn add simple-winston-logger-abstraction
bun add simple-winston-logger-abstraction
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.1 |
| Published | 2022-01-05 |
| First published | 2019-08-21 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | DNitschneider |
| Maintainers | dnitsch |
| Keywords | winston, wrapper, logger, abstraction, stdout |

## Links

- npm: https://www.npmjs.com/package/simple-winston-logger-abstraction
- npm.io page: https://npm.io/package/simple-winston-logger-abstraction

## Dependencies (1)

- [winston](https://npm.io/package/winston.md) ^3.3.3

## 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

- 2.2.1 (latest) — 2022-01-05
- 2.0.3 — 2020-11-06
- 2.0.2 — 2020-05-20
- 2.0.1 — 2020-03-07
- 2.0.0 — 2020-03-03
- 1.0.2 — 2019-11-08
- 1.0.0 — 2019-08-21

## README

# simple-winston-logger-abstraction

DESCRIPTION:
---

Wraps around winston logger instantion and exposes `info`, `error`, `debug` methods

USAGE:
---

```javascript
// typescript
import logger from 'simple-winston-logger-abstraction'
// js
const logger = require('simple-winston-logger-abstraction');

// Info method
logger.info(`calling method with this payload ${JSON.stringify(payload)}`, "request_id")

// Error method
logger.error(`error: ${err.message}`)
logger.debug(`error: ${err.message} ${err.stack}`)

// Debug method
logger.debug(`calling method with this payload ${JSON.stringify(payload)} and this ID ${id}`)
```

Set an environment variable `LOG_LEVEL:"debug||info||error"` for required logging level.

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