项目作者: aldis-ameriks

项目描述 :
Pino transport for Postgres
高级语言: JavaScript
项目地址: git://github.com/aldis-ameriks/pino-postgres.git
创建时间: 2020-08-29T08:20:31Z
项目社区:https://github.com/aldis-ameriks/pino-postgres

开源协议:MIT License

下载


Welcome to pino-postgres 👋



Version

Pino transport for Postgres

Install

  1. $ npm install pino-postgres
  2. # or
  3. $ yarn add pino-postgres

Usage

  1. Usage: pino-postgres [options]
  2. Options:
  3. -V, --version output the version number
  4. --connection <connection> postgres connection string
  5. --table <name> table name (default: "logs")
  6. --schema <name> schema name (default: "public")
  7. --column <name> column name (default: "content")
  8. --flush-interval <number> interval at which logs are flushed in ms (default: 5000)
  9. --buffer-size <number> max number of log entries in buffer (default: 1000)
  10. --max-connections <number> max number of connections (default: 3)
  11. --ssl use ssl (default: false)
  12. --debug debug postgres client (default: false)
  13. --pass-through pass logs through (default: false)
  14. --wrap-non-json wrap non-json messages as json (default: false)
  15. -h, --help display help for command
  1. node app.js | pino-postgres --connection postgres://username:password@localhost:5432/database

pino-postgres does not create the necessary database table, make sure the table with jsonb column exists.

Contributing

Contributions, issues and feature requests are welcome!

License

Copyright © 2020 Aldis Ameriks.

This project is MIT licensed.