winston-nsq
v0.0.3
Published
NSQ transport for winston
Downloads
2
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
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