Skip to content

feat: add jsonlog support for pgbadger configuration#38

Merged
sebastianwebber merged 1 commit intomainfrom
seba/jsonlog
Feb 6, 2026
Merged

feat: add jsonlog support for pgbadger configuration#38
sebastianwebber merged 1 commit intomainfrom
seba/jsonlog

Conversation

@sebastianwebber
Copy link
Contributor

Add support for PostgreSQL's jsonlog format in pgbadger configuration, with automatic selection as default for PostgreSQL 15 and later versions. The jsonlog format provides structured JSON logging which is better suited for modern log analysis tools.

Changes include:

  • Add jsonlog option to log configuration formats
  • Auto-select jsonlog as default for PostgreSQL >= 15
  • Maintain backward compatibility with older versions (stderr default)
  • Update API and CLI documentation to reflect new option
  • Allow explicit format override via query parameter or flag

Add support for PostgreSQL's jsonlog format in pgbadger configuration,
with automatic selection as default for PostgreSQL 15 and later
versions. The jsonlog format provides structured JSON logging which
is better suited for modern log analysis tools.

Changes include:
- Add jsonlog option to log configuration formats
- Auto-select jsonlog as default for PostgreSQL >= 15
- Maintain backward compatibility with older versions (stderr default)
- Update API and CLI documentation to reflect new option
- Allow explicit format override via query parameter or flag

Signed-off-by: Sebastian Webber <sebastian@swebber.me>
@sebastianwebber sebastianwebber merged commit aff352a into main Feb 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant