heapsource/express-winston — pull request #34 by nuarhu (2014-07-24 13:10:11+00:00)
Title: Log response body

And one more. To log the response body, I have introduced the magic whitelist item 'body' for the response whitelist. If it is present in the whitelist, the content of the response (variable 'chunk' in the code) will be added as value to the property 'body'. If the content type of the response contains 'json' it will be parsed before adding it.

If you approve I can update the README. So far, no documentation. I have tested this in my code were I require it. It works for my case (using JSON and string repsonses).

Cheers,
Chantal