-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Add support for logging the response body #68
Comments
@vstrimaitis took a quick crunch, let me know if this working for you. Released 1.4.0rc for this. see doc here for more information: https://github.com/bobbui/json-logging-python#26-custom-log-formatter |
After taking a quick look at the change it seems like this should indeed help, thanks! From the examples it's not entirely clear how I'd be able to access that |
@vstrimaitis This is a simpler way to get the response object and do whatever u want with it |
Looks great, thanks for the help! |
Just a heads up for someone reading, here's a solution for getting the request/response body itself —
|
I'm using Flask and would like to extend the current request logs to include the request and response bodies. This is what I've attempted so far:
I can't find a way of getting the response body without some dirty hacks (e.g. monkey patching
FlaskAppRequestInstrumentationConfigurator
). Am I missing something or is this feature not implemented? Thanks!The text was updated successfully, but these errors were encountered: