# winston-logger-adapter

> Logger adapter

Latest version **0.1.9** (published 2017-06-20) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install winston-logger-adapter
pnpm add winston-logger-adapter
yarn add winston-logger-adapter
bun add winston-logger-adapter
```

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.9 |
| Published | 2017-06-20 |
| First published | 2015-11-04 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Peter Ujvari |
| Maintainers | filc |

## Links

- npm: https://www.npmjs.com/package/winston-logger-adapter
- Repository: https://github.com/filc/node-winston-logger-adapter
- Homepage: https://github.com/filc/node-winston-logger-adapter#readme
- Issues: https://github.com/filc/node-winston-logger-adapter/issues
- npm.io page: https://npm.io/package/winston-logger-adapter

## Dependencies (3)

- [winston](https://npm.io/package/winston.md) 2.3.1
- [winston-mail](https://npm.io/package/winston-mail.md) ^1.3.0
- [winston-sentry](https://npm.io/package/winston-sentry.md) git+https://github.com/huandy/winston-sentry.git

## Recent versions

- 0.1.9 (latest) — 2017-06-20
- 0.1.8 — 2017-05-15
- 0.1.6 — 2017-05-08
- 0.1.5 — 2017-04-25
- 0.1.4 — 2016-02-19
- 0.1.3 — 2015-11-11
- 0.1.2 — 2015-11-04
- 0.1.1 — 2015-11-04
- 0.1.0 — 2015-11-04

## README

# node-winston-logger-adapter

This package is used for logging using winston.

## Installation

npm install winston-logger-adapter

## Example

```
var logger = require('.');

var config = {
  level: 'debug',
  enableMails: true,
  mailConfig: {
    to: '', // Example Leslie <leslie@example.com>
    host: "",
    port: 465,
    ssl: true,
    username: '',
    password: '',
    subject: 'Example subject',
    from: 'Example Sender <sender@example.com>', // EX: 'I'M A BOT <bot@test.com>, ...'
    level: 'error'
  },
  enableSentry: true,
  sentryConfig: {
    level: 'error',
    dsn: '{{ YOUR SENTRY DSN }}'
  }
}

logger.initAdapter({}, config);

logger.log('error', 'asdadasda');
```

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