Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pastjean/pino-logdna-formatter


https://github.com/pastjean/pino-logdna-formatter

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# 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](logdna.com).

## Usage

```sh
npm install pino-logdna-formatter
```

And in your package.json

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

Then:

```sh
npm run start
```