Re: log_line_prefix and JSON log format - Mailing list pgsql-docs

From Tom Lane
Subject Re: log_line_prefix and JSON log format
Date
Msg-id 1885250.1790350583@sss.pgh.pa.us
Whole thread
In response to Re: log_line_prefix and JSON log format  (Laurenz Albe <laurenz.albe@cybertec.at>)
Responses Re: log_line_prefix and JSON log format
Re: log_line_prefix and JSON log format
List pgsql-docs
Laurenz Albe <laurenz.albe@cybertec.at> writes:
> On Fri, 2026-09-25 at 09:32 +0000, PG Doc comments form wrote:
>> I noticed, that it not documented anywhere what log_line_prefix will do, if
>> log_destination = 'jsonlog' (Or CSV). From my tests it seems it is ignored
>> and does nothing. But we weren't sure and would be helpful to have this
>> documented.

> True; here is a patch.

This wording seems like it might add confusion rather than remove it,
because it's not allowing for the fact that log_destination can be
a list.  I'd be inclined to write something more along the lines of
"... string that is output at the beginning of each log line that is
sent to stderr, syslog, or eventlog".

            regards, tom lane



pgsql-docs by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: log_line_prefix and JSON log format
Next
From: Matemática A3K
Date:
Subject: Re: log_line_prefix and JSON log format