winston-nsq

NSQ transport for winston

Usage no npm install needed!

<script type="module">
  import winstonNsq from 'https://cdn.skypack.dev/winston-nsq';
</script>

README

winston-nsq

A NSQ transport for winston logging library.

Credits

Code is based on winston-kafka

Installation

  $ npm install winston
  $ npm install winston-nsq

Build Status

Usage

  var winston = require('winston');

  // Adds a Nsq transport (it also adds the field `winston.transports.Nsq`)
  winston.add(require('winston-nsq'), options);

The nsq transport accepts the following options:

  • level: Level of messages that this transport should log (default: 'info').
  • host:__ Hostname and port to the nsqd server (host:port).
  • nsqd:__ Array of host:port pair for nsqd servers
  • nsqlookupd: Array of nsqlookud addresses in host:port format
  • topic: The topic to submit the messages to.

License

MIT