pino-relic

New Relic Logs for Pino logging

Usage no npm install needed!

<script type="module">
  import pinoRelic from 'https://cdn.skypack.dev/pino-relic';
</script>

README

pino-relic

New Relic Logs for Pino logging

Install

npm install --save-dev pino-relic

Usage

When using Pino the recommended practice is to pipe the output from the main node process into a formatter. This is for performance as node is single threaded and this enables the log formatting to happen in a seperate process.

node main.js | pino-relic --license 123 --common instance,method,status

Options

option description
-l, --license (key) new relic license key
-i, --interval (milliseonds) upload interval (upload compaction)
-c, --common (field1,field2,field3> common fields (upload size optimization)