0.1.6 • Published 10 years ago

winston-kafka-transport v0.1.6

Weekly downloads
4
License
BSD
Repository
github
Last release
10 years ago

winston-kafka-transport

Simple kafka transport for winston

Install

npm install winston winston-kafka-transport --save

Usage

var winston = require('winston');
winston.transports.Kafka = require('winston-kafka-transport');

winston.add(winston.transports.Kafka, {
    topic: 'my_topic_name',
    connectionString: 'localhost:2181',
});

###Options

  • topic - (required) Kafka topic
  • connectionString - Zookeeper connection string, (default localhost:2181/kafka0.8)
  • clientId - This is a user supplied identifier for the client application, (default kafka-node-client)
  • zkOptions - {Object} Zookeeper options, see node-zookeeper-client
  • meta - {Object} Default meta data to add to each logged message (eg. {hostname: 'aws-server-hostname.com'})
  • level - log level...

Testing

Test coming soon...

npm test

License

BSD

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago