Hacker News new | ask | show | jobs
by cdaringe 2164 days ago
We have to write a Json logger versus the default log format
1 comments

`pgx` would let you do that.

You could hook Postgres "emit_log_hook" and probably just use serde to xform the provided "ErrorData" pointer right to json and ship it off where ever you want.

(edit: typeos)