Socket
Socket
Sign inDemoInstall

winston-newrelic-logs-transport

Package Overview
Dependencies
17
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    winston-newrelic-logs-transport

NewRelic Logs API Transport for Winston


Version published
Weekly downloads
3.3K
increased by2.15%
Maintainers
1
Install size
1.05 MB
Created
Weekly downloads
 

Readme

Source

winston-newrelic-logs-transport

A newrelic Logs API transport for winston.

Installation

Tested on node-14.x.

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

Usage

import { createLogger } from 'winston';
import WinstonNewrelicLogsTransport from 'winston-newrelic-logs-transport';
const logger = createLogger({
    transports: [
        new WinstonNewrelicLogsTransport({
            licenseKey: process.env.NEW_RELIC_LICENSE_KEY,
            apiUrl: process.env.NEW_RELIC_API_URL,
        }),
    ],
});

Options

  • licenseKey: New Relic license key.
  • apiUrl: New Relic Log Base API URL.
  • axiosOptions: Options passed to Axios when sending data. (Optional)
  • batchSize: How many log items you would like to bundle together before posting to loggly. (Optional, positive integer or true, default 100)
  • batchThrottle: The maximum frequency the batch posting should occur unless the batch size is exceeded. (Optional, positive integer or true, default 1000)

Batching

If either batching option is set without the other, or simply set as true then default values are used as specified.

FAQs

Last updated on 13 Jul 2023

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