New Relic Logs for Pino logging
npm install --save-dev pino-relic
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
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) |