https://github.com/franky47/douze-prettify-logs
NDJSON prettifier for Pino logs generated by Douze
https://github.com/franky47/douze-prettify-logs
douze logs ndjson prettify
Last synced: 26 days ago
JSON representation
NDJSON prettifier for Pino logs generated by Douze
- Host: GitHub
- URL: https://github.com/franky47/douze-prettify-logs
- Owner: franky47
- License: mit
- Created: 2019-06-12T22:11:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T00:03:08.000Z (over 2 years ago)
- Last Synced: 2025-03-13T12:39:11.310Z (about 2 months ago)
- Topics: douze, logs, ndjson, prettify
- Language: TypeScript
- Size: 551 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# πβ¨ `douze-prettify-logs`
## β°οΈ End-of-life disclaimer
This project was a test and will disappear soon. You may fork it or do whatever you want with it.
---
[](https://github.com/franky47/douze-prettify-logs/blob/master/LICENSE)
[](https://travis-ci.com/franky47/douze-prettify-logs)
[](https://isitmaintained.com/project/franky47/douze-prettify-logs)
[](https://isitmaintained.com/project/franky47/douze-prettify-logs)NDJSON prettifier for [Pino](https://getpino.io) logs generated by [Douze](https://github.com/franky47/douze)
## Features
- πΈοΈ HTTP logger
- π Timezone-aware display of times
- π·οΈ Categories
- π¦ Filtering (level, categories)## Installation
```shell
$ yarn add -D douze-prettify-logs
# or
$ npm i -D douze-prettify-logs
```## Usage
```shell
$ ts-node your-douze-app.ts | douze-prettify-logs
```## CLI Options
```
$ douze-prettify-logs --help
Usage: douze-prettify-logs [options]NDJSON prettifier for Pino logs generated by Douze.
Options:
-V, --version output the version number
-l, --level Log level (default: "info")
-c, --category Filter by category
-u, --utc Show dates as UTC rather than localized
-i, --inline Display extra data inline
-q, --quiet Don't display extra data at all
-n, --no-color Disable coloring of the output
-h, --help output usage informationExamples:
β’ Category filter:
- Only show API logs: $ douze-prettify-logs -c api
- Only show HTTP & API logs: $ douze-prettify-logs -c http,api
- Ignore the DB category: $ douze-prettify-logs -c !db
```