winston-to-newrelic-logs

1.0.11 • Public • Published

winston-to-newrelic-logs

Build Status

A newrelic transport for winston that sends logs to New Relic's Log Product

Installation

Tested on node-6.x, requires npm.

  $ npm install winston --save
  $ npm install winston-to-newrelic-logs --save

Usage

const winston = require('winston');
const NRLogsWinston = require('winston-to-newrelic-logs');
const logger = winston.createLogger({
    transports: [
      new NewrelicWinston({ 
        licenseKey: process.env.NR_LICENCE, 
        apiUrl: 'https://log-api.newrelic.com' 
      }),
    ]
});

logger.log({
    level: 'info',
    message: 'Message'
  });

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.11
    1,272
    • latest

Version History

Package Sidebar

Install

npm i winston-to-newrelic-logs

Weekly Downloads

1,272

Version

1.0.11

License

MIT

Unpacked Size

11.3 kB

Total Files

10

Last publish

Collaborators

  • rudouglas