Re: Custom timestamp format in logs

From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>, Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Custom timestamp format in logs
Date: 2014-12-15 14:29:41
Message-ID: 548EF055.4040509@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 12/14/2014 06:36 PM, Magnus Hagander wrote:
> A separate GUC seems kind of weird. Wouldn't it be better with something
> like %(format)t or such in the log_line_prefix itself in that case? That
> could also be expanded to other parameters, should we need them?

%t isn't the only thing that prints timestamps in the logs, e.g:

LOG: database system was shut down at 2014-12-15 15:30:15 EET

- Heikki

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2014-12-15 14:51:40 Re: Minor binary-search int overflow in timezone code
Previous Message Alex Shulgin 2014-12-15 14:15:56 Re: [PATCH] add ssl_protocols configuration option