Skip to content

Include timestamp in all log lines #565

Description

@jpenna

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..).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions