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

Configurable key and value for time-related logging interceptor fields #406

Open
bow opened this issue Apr 3, 2021 · 1 comment
Open

Comments

@bow
Copy link

bow commented Apr 3, 2021

Hi maintainers

Are there are any plans on exposing time-related logging fields (such as this one, that adds the current time) so that library users can modify them? In this particular example, that could mean modifying the string key, or generating the timestamp in UTC instead of local time.

After trawling through the issues and current merge requests, I do see #399 and #398 which seem related. I am however interested in taking the generalization a little further: not just the formatting, but the time value itself as well as the key name. I'd be happy to help if needed ~ it'd be great to see this in v2 :).

@johanbrandhorst
Copy link
Collaborator

I have to push back a little bit here - is there any reason you don't just use your own interceptor function if you want to use a custom time value and format? Too much configuration will also make this library unusable.

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

No branches or pull requests

2 participants