Re: Frontend error logging style

Peter Eisentraut <peter.eisentraut@enterprisedb.com>

From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-05-30T05:30:44Z
Lists: pgsql-hackers
On 23.05.22 11:53, Peter Eisentraut wrote:
> On 29.03.22 16:24, Peter Eisentraut wrote:
>> I think I would want the program name/location also in front of the 
>> detail and hint lines.  I need to think about this a bit more.  This 
>> shouldn't hold up this patch; it would be a quick localized change.
> 
> After experiencing this for a bit now, I propose to make this change.
> It lines up better and allows easier filtering of messages by program.

This has been committed.



Commits

  1. logging: Also add the command prefix to detail and hint messages

  2. Remove not-very-useful early checks of __pg_log_level in logging.h.

  3. Improve frontend error logging style.

  4. Apply PGDLLIMPORT markings broadly.