Re: Bug#98565: postgresql logs notices with GMT timestamps in syslog (fwd)

Ian Lance Taylor <ian@airs.com>

From: Ian Lance Taylor <ian@airs.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: "Oliver Elphick" <olly@lfix.co.uk>, pgsql-hackers@postgresql.org
Date: 2001-05-24T18:07:49Z
Lists: pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> "Oliver Elphick" <olly@lfix.co.uk> writes:
> > Notices are being timestamped in GMT in the syslog, instead of local
> > time like all other log entries.  Here's a fragment from my syslog:
> 
> Curious.  I always assumed that syslog timestamps were supplied by the
> syslog daemon, but to make this happen they'd have to be supplied in the
> syslog client process (viz. the Postgres process).

That is correct.  The syslog(3) function puts a timestamp in front of
the message, and writes it to the syslog daemon.  The string written
to the daemon starts with <N>, where N is the priority and facility
or'ed together.

Ian