An Express/Connect middleware that logs HTTP request details directly to a PostgreSQL database with automatic monthly table partitioning. Version 0.0.7 is the last release on npm; the project appears to be unmaintained (no commits since 2013, no activity on GitHub). It supports custom fields from the request object and uses pg-native or pg as the PostgreSQL client. Alternatives include pino-http and morgan with PostgreSQL transport, which are actively maintained.
npm install connect-request-logger-pgNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up Express app with the middleware logging requests to PostgreSQL with automatic table partitioning.
Migrate to a supported logging middleware (e.g., pino-http).
Install either `pg` or `pg-native` as a dependency.
Pass a connected client: `logger({ client: someClient })` instead of a pool.Use CommonJS `require()` or ensure your project is configured to handle CJS dependencies.
Run `npm install pg` to install the pg module.
Obtain a client from the pool: `pool.connect().then(client => { ... })` and pass that client.Invoke logger with options: `app.use(logger({ ... }))`.