pino-text-level-transport

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
pino-text-level-transport
001.0.14 years ago4 years agoMinified + gzip package size for pino-text-level-transport in KB

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