Skip to content

proposal: log: support millisecond timestamp resolution #60249

@mitar

Description

@mitar

I would suggest that alongside microsecond or second resolution Go log library would also have millisecond timestamp resolution.

Existing implementation has only microsecond or second resolution, but microsecond resolution could be seen as too precise (access to logs could be used for help with side channel attacks) while second resolution is not precise enough, at least for me, to grasp the evolution of events when many happen at the same time.

This would add the Lmilliseconds flag.

I have made draft of the implementation here https://go-review.googlesource.com/c/go/+/495298 and it seems pretty minimal (#60246).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Incoming

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions