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

fix!: respect time function #115

Merged
merged 1 commit into from
Mar 20, 2024
Merged

fix!: respect time function #115

merged 1 commit into from
Mar 20, 2024

Conversation

aymanbagabas
Copy link
Member

Now, a TimeFunction takes a time.Time argument and returns another. This is needed for people who wish to modify the time being used to log a message such as using UTC.

Fixes: #114

@aymanbagabas aymanbagabas requested a review from caarlos0 March 19, 2024 21:54
Now, a `TimeFunction` takes a `time.Time` argument and returns another.
This is needed for people who wish to modify the time being used to log
a message such as using UTC.

Fixes: #114
@aymanbagabas aymanbagabas merged commit d23bea6 into main Mar 20, 2024
22 checks passed
@aymanbagabas aymanbagabas deleted the time-func branch March 20, 2024 16:05
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.

Passing a logger instance to Slog is not respecting TimeFunction
2 participants