This is a tranport for pino that transforms the level field into a string and renames the
msg field into message. It also creates a timestamp field from time field.
This format is required in logdna.
npm install pino-logdna-formatterAnd in your package.json
{
...
"scripts":{
...
"start": "node yourprocess.js | pino-logdna-formatter"
},
...
}Then:
npm run start