Skip to content

Log filenames can be confusing #215

Description

@fflorent

From @shukon in #116 (comment):

I wondered why you would use 220114 as a timestamp in the archive-names instead of 2022-01-14 or at least 2022014. It's an ISO-norm that makes a lot of sense imho. There are a lot of possible interpretations for e.g. 071211 ;)

I tend to agree, if someone look at this filename:
250824_0000.log

Does it mean?

  • 2025-08-24 (yes!)
  • 2024-08-25 (nop)
  • 2024-25-08 (WTF, but that would be the traditional American date format)

Also it would be consistent with the yunohost operations logs stored in /var/log/yunohost/operations/ to use this format:

date +"%Y%m%d-%H%M%S"`

Any thoughts?

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