pino-text-level-transport

Transforms the log level number into text, used for eg: logdna

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

HomePage

https://github.com/pastjean/pino-text-level-transport#readme

Repository

git+https://github.com/pastjean/pino-text-level-transport.git