pino-logdna-formatter

    1.2.0 • Public • Published

    pino-logdna-formatter

    This is a tranport for pino that transforms the level field into a string and renames the msg field into message. It also creates a timestamp field from time field.

    This format is required in logdna.

    Usage

    npm install pino-logdna-formatter

    And in your package.json

    {
        ...
        "scripts":{
            ...
            "start": "node yourprocess.js | pino-logdna-formatter"
        },
        ...
    }

    Then:

    npm run start

    Install

    npm i pino-logdna-formatter

    DownloadsWeekly Downloads

    960

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    3.18 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar
    • avatar