Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

winston-kafka-connect

2.0.12 • Public • Published

winston-kafka-connect

Simple kafka transport for winston (winston as source to kafka connector)

NPM   Build Status

Install

npm install winston winston-kafka-connect --save

Usage

var winston = require('winston');
require('winston-kafka-connect');
 
winston.add(new winston.transports.WinstonKafkaTransport({
    level: "info",
    format: customFormat,
    meta: {},
    kafkaClient:{
     kafkaHost: "localhost:9092 [,localhost:9093, localhost:9094]",
     clientId: "winston-kafka-logger"
    }
    topic: "winston-logs",
    name: 'WinstonKafkaLogger',
    timestamp: function() {return Date.now()},
    formatter: JSON.stringify
});

License

MIT

Install

npm i winston-kafka-connect

DownloadsWeekly Downloads

118

Version

2.0.12

License

MIT

Unpacked Size

79.8 kB

Total Files

20

Last publish

Collaborators

  • avatar