Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a Duration offset to logging times #337

Merged
merged 1 commit into from
Aug 20, 2020
Merged

Conversation

frankmcsherry
Copy link
Member

This PR allows loggers to be constructed with a offset: Duration which will be added to logged times. The underlying Instant used to produce the times can not be much modified (e.g. on OSX it is based on uptime, and cannot go negative). If one wanted to put the Logger types into a consistent calibration (e.g. the Unix epoch) one can now use a duration to do this.

@frankmcsherry frankmcsherry merged commit e3bb516 into master Aug 20, 2020
@github-actions github-actions bot mentioned this pull request Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant