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 | 21d2719f-36ff-06d2-5856-25ed48b965c5@2ndquadrant.com обсуждение исходный текст |
Ответ на | Re: Set log_line_prefix and application name in test drivers (Robert Haas <robertmhaas@gmail.com>) |
Ответы |
Re: Set log_line_prefix and application name in test drivers
Re: Set log_line_prefix and application name in test drivers Re: Set log_line_prefix and application name in test drivers |
Список | pgsql-hackers |
On 9/28/16 6:13 PM, Robert Haas wrote: > Christoph/Debian: > log_line_prefix = '%t [%p-%l] %q%u@%d ' > Peter: > log_line_prefix = '%t [%p]: [%l] %qapp=%a ' I'm aware of two existing guidelines on log line formats: syslog and pgbadger. Syslog output looks like this: Sep 28 00:58:56 hostname syslogd[46]: some text here pgbadger by default asks for this: log_line_prefix = '%t [%p]: [%l-1] user=%u,db=%d,app=%a,client=%h ' I don't know why it wants that "-1" there, and I'm actually not sure what the point of %l is in practice. Those are separate issues that are having their own lively discussions at times. I could drop the [%l] from my proposal if that causes concerns. On balance, I think my proposal is more in line with existing wide-spread conventions. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления: