🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

pino-pg

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-pg

A Pino Transport for PostgreSQL databases.

latest
Source
npmnpm
Version
2.2.1
Version published
Weekly downloads
192
-7.25%
Maintainers
1
Weekly downloads
 
Created
Source

pino-pg

A Pino Transport for PostgreSQL databases.

GitHub Workflow Status GitHub npm

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 <your connection string> --table <your logs table> --column <your column table>

Options

  • The connectionUrl (or u) must contain the postgres url string.
  • 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

Keywords

pino

FAQs

Package last updated on 05 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts