Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include timestamp in all log lines #565

Closed
jpenna opened this issue Apr 27, 2018 · 3 comments
Closed

Include timestamp in all log lines #565

jpenna opened this issue Apr 27, 2018 · 3 comments

Comments

@jpenna
Copy link

jpenna commented Apr 27, 2018

I searched the repo and the most similar thing seems to be the DEBUG_HIDE_DATE env var, which was to remove timestamp for non-TTY consoles - which is not that similar also.

I would like to have a timestamp in all lines. Something like this:

18:06:13 collector:persist ERROR File size didn't change (logs) +0ms
18:06:13 collector:persist ERROR File size didn't change (error) +0ms

I could override the console.error/log/... methods, but I am already using a lib for logging, I didn't want to add another step on this.

I didn't think it through, I'd like to hear what you think first, if this would be useful to the library, otherwise I can do a fork myself or get another lib (even though I like this one..).

@jpenna jpenna changed the title Include timestamp in all logs Include timestamp in all log lines Apr 27, 2018
@Qix-
Copy link
Member

Qix- commented Jun 20, 2018

Closing in favor of #582. Please move discussion there.

@ajorpheus
Copy link

If you stumble across this issue while trying to enable timestamps for GHA log, here is the good bit:

GitHub Actions now provides timestamps by default with "shift + T" in the logs.

@fredkid123
Copy link

Is there a way to change the default behavior to show Timestamps (instead of have to always do "shift + T" once...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants