winston-nsq

0.0.3 • Public • Published

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

Package Sidebar

Install

npm i winston-nsq

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • nomon