Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 473 Bytes

readme.md

File metadata and controls

15 lines (11 loc) · 473 Bytes

pg_json_log

This module is a logging facility using the hook present in elog.c to generate server logs in JSON format.

Its installation can be done by adding this parameter in postgresql.conf:

shared_preload_libraries = 'pg_json_log'

Note that logging_collector should be enabled in postgresql.conf to ensure consistent log outputs. As JSON strings are longer than normal logs generated by PostgreSQL, this module increases the odds of malformed log entries.