Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xstoudi/pino-pg
A Pino Transport for PostgreSQL databases.
https://github.com/xstoudi/pino-pg
hacktoberfest nodejs pino postgresql
Last synced: 18 days ago
JSON representation
A Pino Transport for PostgreSQL databases.
- Host: GitHub
- URL: https://github.com/xstoudi/pino-pg
- Owner: Xstoudi
- License: mit
- Created: 2020-03-02T20:39:29.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-16T20:14:37.000Z (over 1 year ago)
- Last Synced: 2024-10-15T03:44:55.049Z (about 1 month ago)
- Topics: hacktoberfest, nodejs, pino, postgresql
- Language: TypeScript
- Homepage:
- Size: 450 KB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
> DISCONTINUED
# pino-pg
A Pino Transport for PostgreSQL databases.![GitHub Workflow Status](https://img.shields.io/github/workflow/status/Xstoudi/pino-pg/Tests?label=tests&style=for-the-badge)
![GitHub](https://img.shields.io/github/license/Xstoudi/pino-pg?style=for-the-badge)
![npm](https://img.shields.io/npm/v/pino-pg?style=for-the-badge)## Requirement
This package requires at least Node.js version 10.## Installation
```
npm install pino-pg
```## Usage
Store logs to PostgreSQL.
```
node my-app.js | pino-pg --connectionUrl --table --column
```## Options
- The `connectionUrl` (or `u`) must contain the [postgres url string](https://node-postgres.com/features/connecting#Connection%20URI).
- The `table` (or `t`) must contain the table name. Default to `logs`.
- The `column` (or `c`) must contain the name of the JSONB column where you want to store log entries.## License
Licensed under [MIT](https://github.com/Xstoudi/pino-pg/blob/master/LICENSE.md)