namshi/newrelic-winston

Name: newrelic-winston

Owner: Namshi

Description: null

Created: 2015-08-03 08:21:49.0

Updated: 2018-03-02 07:40:04.0

Pushed: 2017-12-19 13:28:59.0

Homepage: null

Size: 148

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

newrelic-winston Build Status

A newrelic transport for winston including the newrelic Library

Installation

Tested on node-0.12.x, requires npm.

npm install winston --save
npm install newrelic-winston --save
Usage
r winston = require('winston');
nston.add(require('newrelic-winston'), options);

or

NewrelicWinston = require('newrelic-winston');
logger = new(winston.Logger)({
    exitOnError: false,
    transports: [new(NewrelicWinston)(options)]
  });
Options

If env is either 'dev' or 'test' the lib will not load the included newrelic module saving devs from anoying errors ;)

Config

Please refer to the newrelic lib's readme for specific module's configs.

Log Levels

This trasport is meant to report errors to newrelic, so the only level available in order to log something is error

All other possible winston's levels, or custom levels, will noop


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.