pino-text-level-transport
v1.0.1
Published
Transforms the log level number into text, used for eg: logdna
Downloads
322
Readme
pino-text-level-transport
This is a tranport for pino that transforms the "level" field into a string.
It is useful for logging platforms such as logdna that only supports having the level field as string.
Usage
npm install pino-text-level-transport
And in your package.json
{
...
"scripts":{
...
"start": "node yourprocess.js |pino-text-level-transport"
},
...
}
Then:
npm run start