-
Notifications
You must be signed in to change notification settings - Fork 61
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
Question:How to get the response body in hapi-pino logs? #121
Comments
The docs say this about the
So it seems to be to be intended that only the request payload is logged, not the response. However I'd also like to be able to log the response payload for troubleshooting purposes, there doesn't seem to be an option for this. |
You can do this with a formatter:
|
very helpful. Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My code is a follows:
Logs are as shown as below:
Response body is showing as
"res":{}
How to get the response body value, which is
{'test':'Resp Msg'}
The text was updated successfully, but these errors were encountered: