pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
logging how to add timestamp
2+ messages / 2 participants
[nested] [flat]

* logging how to add timestamp
@ 2011-06-01 16:56  Campbell, Lance <lance@illinois.edu>
  0 siblings, 1 reply; 2+ messages in thread

From: Campbell, Lance @ 2011-06-01 16:56 UTC (permalink / raw)
  To: pgsql-admin

Postgresql: 8.4.x
How do you add a timestamp to the logs.  Currently I see:

ERROR: {some error message}
STATEMENT: {the sql statement}

Ideally I would like to have the timestamp in front of the statements.

Thanks,

Lance Campbell
Software Architect/Project Manager/DBA
Web Services at Public Affairs
217.333.0382
http://illinois.edu/toolbox

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: logging how to add timestamp
@ 2011-06-01 17:17  Ray Stell <stellr@cns.vt.edu>
  parent: Campbell, Lance <lance@illinois.edu>
  0 siblings, 0 replies; 2+ messages in thread

From: Ray Stell @ 2011-06-01 17:17 UTC (permalink / raw)
  To: Campbell, Lance <lance@illinois.edu>; +Cc: pgsql-admin

On Wed, Jun 01, 2011 at 04:56:12PM +0000, Campbell, Lance wrote:
> Postgresql: 8.4.x
> How do you add a timestamp to the logs.  Currently I see:
> 
> ERROR: {some error message}
> STATEMENT: {the sql statement}
> 
> Ideally I would like to have the timestamp in front of the statements.
> 
> Thanks,
> 
> Lance Campbell
> Software Architect/Project Manager/DBA
> Web Services at Public Affairs
> 217.333.0382
> http://illinois.edu/toolbox
> 


log_line_prefix

#   %t = timestamp (no milliseconds)
#   %m = timestamp with milliseconds




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2011-06-01 17:17 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-06-01 16:56 logging how to add timestamp Campbell, Lance <lance@illinois.edu>
2011-06-01 17:17 ` Ray Stell <stellr@cns.vt.edu>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox