Socket
Socket
Sign inDemoInstall

newrelic-winston

Package Overview
Dependencies
267
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    newrelic-winston

A newrelic transport for winston


Version published
Weekly downloads
2.3K
increased by3.73%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

newrelic-winston Build Status

A newrelic transport for winston including the newrelic Library

Installation

Tested on node-6.x, requires npm.

  $ npm install winston --save
  $ npm install newrelic-winston --save

Usage

const winston = require('winston');
const NewrelicWinston = require('newrelic-winston');
winston.add(new NewrelicWinston(options));

or

const { createLogger } = require('winston');
const NewrelicWinston = require('newrelic-winston');
const logger = createLogger({
    transports: [
        new NewrelicWinston(options),
    ],
});

Options

  • env: the current evironment. Defatuls to process.env.NODE_ENV

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

Keywords

FAQs

Last updated on 02 Sep 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc