README
winston-kafka-transport--light
Simple kafka transport for winston
Install
npm install winston-kafka-transport--light --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 topicconnectionString
- Zookeeper connection string, (defaultlocalhost:2181/kafka0.8
)clientId
- This is a user supplied identifier for the client application, (defaultkafka-node-client
)zkOptions
- {Object} Zookeeper options, see node-zookeeper-clientmeta
- {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