Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Glog file separation by year #516

@vctang

Description

@vctang

Hello! There seems to be an edge case that occurs when the year switches while we are in the midst of writing glogs.

For instance, if we are writing glogs at 11:59 pm on 12/31/2019, and the year switches to 2020, the mmdd timestamp written on each line of the glog will not capture this year difference. Therefore, it looks like the glogs jump from 12/31/2019 to 01/01/2019 if we are only extrapolating the year from the file name, or the file creation date written at the top of each glog file.

I think some possible solutions include:

  • Appending the year to each glog line in the format of [IWEF]yyyymmdd hh:mm:ss.uuuuuu threadid file:line] msg
  • Splitting the glog file when the year changes.

Was there a reason for not including the year in the line-by-line output format?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions