pino-pg
v2.2.1
Published
A Pino Transport for PostgreSQL databases.
Downloads
515
Maintainers
Readme
pino-pg
A Pino Transport for PostgreSQL databases.
Requirement
This package requires at least Node.js version 10.
Installation
npm install pino-pgUsage
Store logs to PostgreSQL.
node my-app.js | pino-pg --connectionUrl <your connection string> --table <your logs table> --column <your column table>Options
- The
connectionUrl(oru) must contain the postgres url string. - The
table(ort) must contain the table name. Default tologs. - The
column(orc) must contain the name of the JSONB column where you want to store log entries.
License
Licensed under MIT
