pg_logger

Generates a Proc that can be fed to a “pg”-driven PostgreSQL adapter. The proc will convert the PostgreSQL messages to the Ruby logger messages of a comparable warning level and send them to your logger.

For example, to use via Sequel:

db = Sequel.connect('postgres://...', notice_receiver: PgLogger.notice_proc_for_logger(MyApp.logger))

Contributing to pg_logger

Copyright © 2016 WeTransfer. See LICENSE.txt for further details.