A Winston transport to log messages into an Apache Kafka topic.
npm install winston-transport-kafka
var winston = require('winston');
winston.transports.KafkaTransport = require('winston-transport-kafka').Kafka;
var options = {
topic: 'logs'
};
winston.add(winston.transports.KafkaTransport, options);
###Options
topic
- (required) Kafka topic.clientId
- Kafka client ID | Default: winston-kafka-transportconnectionString
- Zookeeper connection string | Default: localhost:2181compress
- Compress messages before sending to Kafka (Gzip)| Default: falseproducerOptions
- Kafka HighLevelProducer optionszkOptions
- Zookeeper Options
This project is work in progress and we'd love more people contributing to it.
- Fork the repo
- Apply your changes
- Write tests
- Submit your pull request
For feedback or suggestions you can drop us a line at support@avocarrot.com