-
Notifications
You must be signed in to change notification settings - Fork 403
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
Logger to support arbitrary key=value style arguments in log statements #1167
Comments
cc @pankajagrawal16 @saragerion @cakepietoast as I added |
This is already supported by the TypeScript powertool 🥳 |
This will be available in the next release 🎉 !!! cc @eoinsha |
|
This is now released under 2.1.0 version! |
Runtime: Python
Is your feature request related to a problem? Please describe
As per discussion originally posted on Python repo, this feature request is related to Logger being able to use key value arguments in log statements e.g.
logger.info("my message", my_key="value", request_id="123d023f0-alk322f")
.Describe the solution you'd like
I'd like to add additional keys on a per log statement basis by passing an arbitrary number of key=value arguments to
.info, .warn, etc.
.Describe alternatives you've considered
extra={}
parameter as supported by Logger and in standard logging libraryIf you provide guidance, is this something you'd like to contribute?
Additional context
The text was updated successfully, but these errors were encountered: