NDJSON prettifier for Pino logs generated by Douze
MIT License
douze-prettify-logs
This project was a test and will disappear soon. You may fork it or do whatever you want with it.
NDJSON prettifier for Pino logs generated by Douze
$ yarn add -D douze-prettify-logs
# or
$ npm i -D douze-prettify-logs
$ ts-node your-douze-app.ts | douze-prettify-logs
$ 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 <level> Log level (default: "info")
-c, --category <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 information
Examples:
β’ 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