0.0.40 • Published 27 days ago
pino-postgres v0.0.40
Pino transport for Postgres
Install
$ npm install pino-postgres
# or
$ yarn add pino-postgres
Usage
Usage: pino-postgres [options]
Options:
-V, --version output the version number
--connection <connection> postgres connection string
--table <name> table name (default: "logs")
--schema <name> schema name (default: "public")
--column <name> column name (default: "content")
--flush-interval <number> interval at which logs are flushed in ms (default: 5000)
--buffer-size <number> max number of log entries in buffer (default: 1000)
--max-connections <number> max number of connections (default: 3)
--ssl use ssl (default: false)
--debug debug postgres client (default: false)
--pass-through pass logs through (default: false)
--wrap-non-json wrap non-json messages as json (default: false)
-h, --help display help for command
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.
0.0.40
27 days ago
0.0.39
5 months ago
0.0.38
11 months ago
0.0.37
1 year ago
0.0.35
1 year ago
0.0.36
1 year ago
0.0.34
2 years ago
0.0.33
3 years ago
0.0.32
4 years ago
0.0.20
4 years ago
0.0.21
4 years ago
0.0.22
4 years ago
0.0.23
4 years ago
0.0.24
4 years ago
0.0.25
4 years ago
0.0.19
4 years ago
0.0.30
4 years ago
0.0.31
4 years ago
0.0.26
4 years ago
0.0.27
4 years ago
0.0.28
4 years ago
0.0.29
4 years ago
0.0.18
4 years ago
0.0.17
4 years ago
0.0.16
4 years ago
0.0.10
4 years ago
0.0.11
4 years ago
0.0.12
4 years ago
0.0.13
4 years ago
0.0.14
4 years ago
0.0.15
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago