# logtown-winston

> Logtown wrapper for winston logger

Latest version **2.4.5** (published 2018-11-23) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install logtown-winston
pnpm add logtown-winston
yarn add logtown-winston
bun add logtown-winston
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.4.5 |
| Published | 2018-11-23 |
| First published | 2017-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dmytro Zelenetskyi |
| Maintainers | hunterman |
| Keywords | Logtown, logger, winston, logtown, wrapper |

## Links

- npm: https://www.npmjs.com/package/logtown-winston
- Repository: https://github.com/logtown/logtown
- Homepage: https://github.com/logtown/logtown/tree/master/wrappers/winston2#readme
- Issues: https://github.com/logtown/logtown/issues
- npm.io page: https://npm.io/package/logtown-winston

## 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.4.5 (latest) — 2018-11-23
- 2.4.4 — 2018-08-28
- 2.4.0 — 2018-08-13
- 2.3.1 — 2018-08-11
- 2.3.0 — 2018-08-11
- 2.2.0 — 2018-08-06
- 1.0.0 — 2017-01-02

## README

# logtown-winston

> Logtown wrapper for winston logger 

## Installation

```bash
yarn add logtown-winston winston 
```

or 

```bash
npm install logtown-winston winston
```

## Usage

```javascript
const logtown = require('logtown');
const WinstonWrapper = require('logtown-winston');
const winston = require('winston');

const customTransportsArray = [
    new winston.transports.Console({
      json: false,
      colorize: true,
      prettyPrint: true,
      timestamp: true,
      handleExceptions: true,
      align: false,
      level: 'silly'
    })
];

const customWinstonOptions = {exitOnError: false};

logtown.addWrapper(new WinstonWrapper(customTransportsArray, customWinstonOptions));
```

For reference of winston options see [winston docs](https://github.com/winstonjs/winston)

## ES5 usage

```javascript
var WinstonWrapper = require('logtown-winston/es5');
```

## License

Logtown-winston is released under the MIT license.

## Donate

[![](https://img.shields.io/badge/patreon-donate-yellow.svg)](https://www.patreon.com/red_rabbit)
[![](https://img.shields.io/badge/flattr-donate-yellow.svg)](https://flattr.com/profile/red_rabbit)

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