Re: Set log_line_prefix and application name in test drivers

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Set log_line_prefix and application name in test drivers
Дата
Msg-id 19d9f94a-b65d-b8f0-579c-0ee1959b1814@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: Set log_line_prefix and application name in test drivers  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Set log_line_prefix and application name in test drivers  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Re: Set log_line_prefix and application name in test drivers  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
On 8/10/16 5:18 PM, Tom Lane wrote:
> Or in short: I don't want to be seeing one prefix format in some buildfarm
> logs and a different format in others.

Sure.  My patch has

log_line_prefix = '%t [%p]: [%l] %qapp=%a '

which is modeled after the pgfouine recommendation, which is I believe a
wide-spread convention, and it also vaguely follows syslog customs.

The build farm client has

log_line_prefix = '%m [%c:%l] '

which is very similar, but the lack of the PID makes it unsuitable for
the purposes that I have set out, and there is no obvious place to put
additional information such as %a.

%m vs %t is obviously a minor issue that I will gladly adjust, but
besides that I prefer to stick with my version.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Improved ICU patch - WAS: Implementing full UTF-8 support (aka supporting 0x00)
Следующее
От: Lukas Fittl
Дата:
Сообщение: Re: Btree Index on PostgreSQL and Wiredtiger (MongoDB3.2)