Re: Add jsonlog log_destination for JSON server logs
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Sehrope Sarkuni <sehrope@jackdb.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>, david@fetter.org
Date: 2021-10-19T11:02:02Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Introduce log_destination=jsonlog
- dc686681e079 15.0 landed
-
Refactor set of routines specific to elog.c
- ac7c80758a7a 15.0 landed
-
Fix compilation warning in syslogger.c
- 05c4248ad1bf 15.0 landed
-
Refactor per-destination file rotation in logging collector
- 5c6e33f07153 15.0 landed
-
Refactor output file handling when forking syslogger under EXEC_BACKEND
- 5b0b699f748e 15.0 landed
-
Add regression tests for csvlog with the logging collector
- 72b76f76161c 15.0 landed
-
Refactor the syslogger pipe protocol to use a bitmask for its options
- 2d77d835403a 15.0 landed
Attachments
- v6-0001-Some-refactoring-of-elog-specific-routines.patch (text/x-diff) patch v6-0001
- v6-0002-Refactor-CSV-specific-code-into-its-own-file.patch (text/x-diff) patch v6-0002
- v6-0003-JSON-logging.patch (text/x-diff) patch v6-0003
On Fri, Oct 08, 2021 at 12:28:58PM +0900, Michael Paquier wrote: > 0001 and 0003 have been applied independently, attached is a rebased > version. Attached are rebased versions of the patch set, where I have done a cleaner split: - 0001 includes all the refactoring of the routines from elog.c. - 0002 moves csv logging into its own file. - 0003 introduces the JSON log. 0001 and 0002, the refactoring bits, are in a rather committable shape, so I'd like to apply that as the last refactoring pieces I know of for this thread. 0003 still needs a closer lookup, and one part I do not like much in it is the split for [u]int and long values when it comes to key and values. -- Michael