winston-newrelic-update
v0.3.0
Published
Reports winston log errors to new-relic
Downloads
32
Readme
winston-newrelic
New Relic trasporter for winston. Logs winston caught exceptions and logs to New Relic.
Installation
npm install winston-newrelic
Usage
// Top of your boot file
require('newrelic');
var winston = require('winston'),
WinstonNewrelic = require('winston-newrelic');
// Add newrelic logger as trasporter
winston.add(winston.transports.newrelic, {});
Using custom newrelic module
javascript
winston.add(winston.transports.newrelic, {newrelic: require('/path/to/your/newrelic')});