Spectrum is no longer in active development. If you have any questions or concerns please contact us at https://revsys.com
A winston transport for SpectrumApp
$ npm install winston
$ npm install winston-spectrum
var winston = require('winston');
/*
* Requiring `winston-spectrum` will expose
* `winston.transports.Spectrum`
*/
require('winston-spectrum');
winston.add(winston.transports.Spectrum, options);
Options are the following:
- url: The URL of a Spectrum REST stream. (default: 'http://localhost:9000')
- level: Level of messages that this transport should log.
When logging, you can use the sublevel
metadata property to direct the log to
the correct sublevel:
winston.log('warn', logMessage, {sublevel: 'my sublevel'});
This software is release under the MIT License.