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 = ;// Adds a Nsq transport (it also adds the field `winston.transports.Nsq`)winston;
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