pino-text-level-transport

1.0.1 • Public • Published

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

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i pino-text-level-transport

    Weekly Downloads

    377

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    2.75 kB

    Total Files

    4

    Last publish

    Collaborators

    • pastjean
    • pleo.io