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

Logging middleware should allow custom #33

Open
3 tasks done
CermakM opened this issue May 21, 2024 · 0 comments
Open
3 tasks done

Logging middleware should allow custom #33

CermakM opened this issue May 21, 2024 · 0 comments

Comments

@CermakM
Copy link
Collaborator

CermakM commented May 21, 2024

Inspiration what to put in the description:

I would like to extend the data logged by the logging middleware by custom data. Currently, that's not completely possible. While I can pass custom logging fields to the logger accepted as an input to the middleware, if the data I need comes from other middleware (evaluated from the contextual headers at runtime), then I have no way of injecting them to the logging middelware.

Benefits of the feature

While we can add ad hoc fields to the RequestData, implementing it in a generic way would be more flexible.

Checklist

  • I have read the CONTRIBUTING.md.
  • I have checked if I'm using the latest version and if I can get the desired behavior by changing the configuration. You might discover that the feature is already available.
  • I have searched the existing issues and discussions to see if the feature has already been suggested.
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

1 participant