-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Requests logger middleware #22
Comments
@TheWisePigeon may i know the existing condition? do we log anything? |
would this be related to #9? |
Yes in a way |
What I originally planned to do is kind of like assign an id to each request and pass the id down to all the middlewares so when they log stuff they can add the request id for more context |
I see, I think we can solve this by generating a request id and pass it around inside a context. So, when we are logging in lower level (e.g. repository or use case) it will have the same request id. |
If you're agree, I will create a PR to demonstrate it. Later on, we can continue the discussion on that PR. Wdyt? |
It would be great :) |
This middleware should only log requests either coming from the Frontend or authenticated requests going to the API.
The text was updated successfully, but these errors were encountered: