Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Don’t log date/time on Heroku. #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paxan
Copy link

@paxan paxan commented Oct 12, 2015

Heroku logging infra already took care of time stamping.

With this commit applied, here's how a typical Heroku log stream looks like:

2015-10-12T18:57:07.171422+00:00 app[web.1]: oauthproxy.go:96: mapping path "/" => upstream "http://localhost:7777"
2015-10-12T18:57:07.171427+00:00 app[web.1]: oauthproxy.go:122: OauthProxy configured for Google Client ID: 12345.apps.googleusercontent.com
2015-10-12T18:57:07.171434+00:00 app[web.1]: oauthproxy.go:132: Cookie settings: name:__oa2p secure(https):true httponly:true expiry:168h0m0s domain:<default> refresh:after 1h0m0s
2015-10-12T18:57:07.172172+00:00 app[web.1]: http.go:45: HTTP: listening on 0.0.0.0:29025

Heroku logging infra already took care of time stamping.
@jehiah
Copy link
Member

jehiah commented Nov 9, 2015

@paxan I think this is a fair addition because I do appreciate good Heroku support. Just to be clear though, at some granularity timestamps from an application are more accurate because there can be buffering on the log output before a log management process inserts it's own timestamps.

I think an appropriate config flag for this feature would be something like -log-include-timestamps=true.

Interested in updating this?

@paxan
Copy link
Author

paxan commented Nov 9, 2015

Will do.

On Mon, Nov 9, 2015 at 6:57 AM, Jehiah Czebotar [email protected]
wrote:

@paxan https://github.com/paxan I think this is a fair addition because
I do appreciate good Heroku support. Just to be clear though, at some
granularity timestamps from an application are more accurate because there
can be buffering on the log output before a log management process inserts
it's own timestamps.

I think an appropriate config flag for this feature would be something
like -log-include-timestamps=true.

Interested in updating this?


Reply to this email directly or view it on GitHub
#154 (comment).

Pavel Repin

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

2 participants