# winston-kafka

> Kafka transport for winston

Latest version **0.1.0** (published 2014-05-01) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2014-05-01 |
| First published | 2014-05-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Magnus Ronager |
| Maintainers | nokk |
| Keywords | kafka, logging, log, transport, winston |

## Links

- npm: https://www.npmjs.com/package/winston-kafka
- Repository: https://github.com/nokk/winston-kafka
- npm.io page: https://npm.io/package/winston-kafka

## Dependencies (2)

- [winston](https://npm.io/package/winston.md) >= 0.7.2
- [kafka-node](https://npm.io/package/kafka-node.md) git://github.com/nokk/kafka-node

## 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.1.0 (latest) — 2014-05-01

## README

# winston-kafka

A Kafka transport for [winston](https://github.com/flatiron/winston) logging library.

## Installation
``` bash
  $ npm install winston
  $ npm install winston-kafka
```
[![Build Status](https://secure.travis-ci.org/nokk/winston-kafka.png)](http://travis-ci.org/nokk/winston-kafka)

## Usage
``` js
  var winston = require('winston');

  // Adds a Kafka transport (it also adds the field `winston.transports.Kafka`)
  winston.add(require('winston-kafka'), options);
```

The Kafka transport accepts the following options:

* __level:__ Level of messages that this transport should log (default: `'info'`).
* __zookeeperHost:__ Hostname and port to the zookeeper server (host:port). 
* __topic:__ The topic to submit the messages to.

## License
MIT

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