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

More advance logging #10

Open
jaumard opened this issue Aug 15, 2024 · 0 comments
Open

More advance logging #10

jaumard opened this issue Aug 15, 2024 · 0 comments

Comments

@jaumard
Copy link

jaumard commented Aug 15, 2024

The logging middleware is really basic, in order to manage it better it would need more flexibility, for example the isError is only true for exceptions. But we might want isError to be true also for 4xx statuses. Cause if you send to Google Cloud Logging like I do you want more info on 4xx like payload and such.

One easy way to do that will be to have something like:

logRequests(logger: (resquest, response, error, stack) {

})

With that we could do whatever needed to have proper logs.

We could probably also have a logRequestsToCloundLogging(...) that do the job all in one ˆˆ

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