postgres-csvlog
JSON →A lightweight Node.js library for parsing PostgreSQL logs in CSV format (csvlog). Current stable version is 1.0.2. It is a straightforward, dependency-free parser that converts PostgreSQL csvlog lines into JavaScript objects. Unlike manual parsing or regular expressions, this library handles the custom CSV escaping, quoting, and field types used by PostgreSQL's csvlog format, including timestamps, numeric, and error details. It parses each line according to the PostgreSQL documentation for log_destination='csvlog'. No dependencies, simple API, suitable for log analysis and monitoring tools. Released under the MIT license.
Resources
packagepostgres-csvlog ↗