Skip to content
This repository was archived by the owner on Oct 27, 2022. It is now read-only.

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UPATE

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

Installation

$ npm install winston
$ npm install winston-spectrum

Usage

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'});

License

This software is release under the MIT License.

About

A winston transport that logs to your Spectrum app

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages