Skip to content

pastjean/pino-logdna-formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published