Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pastjean/pino-logdna-formatter
https://github.com/pastjean/pino-logdna-formatter
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pastjean/pino-logdna-formatter
- Owner: pastjean
- License: mit
- Created: 2018-04-24T18:48:25.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-09T18:55:25.000Z (about 2 years ago)
- Last Synced: 2024-10-02T14:47:42.333Z (4 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```