Re: Please add timestamps to pgagent log - Mailing list pgadmin-support

From Sanket Mehta
Subject Re: Please add timestamps to pgagent log
Date
Msg-id CA+yw=mNrOm5a0=a_9X7WOVJ2AiNb=5oG1MVBgb0m0g_PcQWiEw@mail.gmail.com
Whole thread Raw
In response to Re: Please add timestamps to pgagent log  (Sanket Mehta <sanket.mehta@enterprisedb.com>)
Responses Re: Please add timestamps to pgagent log
List pgadmin-support
Hi ,

I have attached the patch which is having both functionalities (-v for version info and timestamp in log)

Here timestamp is added only for linux platform because on windows pgagent logs are viewed in event viewer which provides timestamp on its own.

Please do review it and let me know in case anything is missing.

Regards,
Sanket Mehta
Sr Software engineer
Enterprisedb

On Fri, Jul 10, 2015 at 8:01 PM, Sanket Mehta <sanket.mehta@enterprisedb.com> wrote:
Sure Dave,

I will look into it.

Regards,
Sanket Mehta
Sr Software engineer
Enterprisedb

On Fri, Jul 10, 2015 at 7:40 PM, Dave Page <dpage@pgadmin.org> wrote:
Sanket - can you look at this please? As with Josh's request for
--version, it looks like we added this functionality to the PEM agent,
not pgAgent. You may copy the timestamp support for logging from the
PEM code to save effort.

On Sat, Jul 4, 2015 at 7:23 PM, Josh Berkus <josh@agliodbs.com> wrote:
> Request:
>
> pgagent's output log current does not include timestamps.  That makes it
> fairly hard to debug anything based on the log.  Can we add a timestamp
> to the beginning of each log line?
>
> --
> Josh Berkus
> PostgreSQL Experts Inc.
> http://pgexperts.com
>
>
> --
> Sent via pgadmin-support mailing list (pgadmin-support@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-support



--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


Attachment

pgadmin-support by date:

Previous
From: Josh Berkus
Date:
Subject: Re: pgagent hangs forever in "r" state
Next
From: Dave Page
Date:
Subject: Re: Please add timestamps to pgagent log