winston-kafka-transport
Simple kafka transport for winston
Install
npm install winston winston-kafka-transport --save
Usage
var winston = ;winstontransportsKafka = ; winston;
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