1.0.1 • Published 6 years ago

pino-text-level-transport v1.0.1

Weekly downloads
279
License
MIT
Repository
github
Last release
6 years ago

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