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

SpectrumApp/winston-spectrum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published