Skip to content

fix!: respect time function - #115

Merged
aymanbagabas merged 1 commit into
mainfrom
time-func
Mar 20, 2024
Merged

aymanbagabas merged 1 commit into
mainfrom
time-func

Conversation

@aymanbagabas

Copy link
Copy Markdown
Contributor

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
@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

⌂ 换网址