Socket
Socket
Sign inDemoInstall

pino-new-relic

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-new-relic

This is a legacy Pino Transport to ship logs to New Relic.


Version published
Maintainers
1
Created
Source

Pino New Relic

This is a legacy Pino Transport to ship logs to New Relic.

Use with an Applicaiton using Pino Logger

Let's say you have a cool web server/application that uses Pino Logger. Just add pino-new-relic to your project using your favorite package manager. Here's how you do it with yarn:

$ yarn add pino-new-relic

Now just pipe your application's output to pino-new-relic. This can be done by updating your start script in your package.json file:

...
 "start": "node myapp.js | pino-new-relic [options]",
... 

Options and Configuration

Here are the flags that can be passed to pino-new-relic. They can also be configured via envars, also described below. Args will override envars.

flagenvardescriptiondefault
-d, --dryrunPN_DRYRUNDo not send to New Relic, but write to stdout.false
-a, --api-keyPN_API_KEYNew Relic license key (required if dryrun is false).''
-i, --interval-msPN_INTERVAL_MSInterval to send accumulated log lines.1000
-m, --max-linesPN_MAX_LINESMaximum number of lines to send to New Relic. Triggers a send.100
-e, --euPN_EUUse New Relic EU endpoint.false
-o, --echo-onPN_ECHO_ONTurns on echoing log stream as it would be sent to New Relic. Otherwise, nothing it outputed.false
-z, --gzipPN_GZIPCompress log lines before sending to New Relic.false

No configuration is required, but if no New Relic License Key is included and dryrun is not set to true then the logger will error.

Keywords

FAQs

Package last updated on 11 Mar 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc