Skip to content

Add timestamp to the logger #209

Open

Description

@mzimbres

See #205 (comment) for motivation.

Activity

  1. anarthal commented on Oct 22, 2025

    @anarthal
    Collaborator

    I'm trying to implement this and I see no way of doing this portably, without dependencies and in C++17. It looks like formatting time_points with operator<< requires C++20. And the C library (strftime and localtime) is not thread-safe. localtime_r is not portable either. I could either do some conditional compilation on the availability of operator<<, or leave this as it is.

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