Node.js Express.js: Getting the body of a sent response
<p>A sample of my code will be:</p>

<pre><code>middlewareA(req,res,next){
  res.send('some msg to client');
  next()
}
middlewareB(req,res,next){
  var sent_msg_body = res.&lt;some method\property to get body&gt;
  logger.info(sent_msg_body);     
}
</code></pre>

<p>I woukd like to retrieve the <code>msg</code> that was sent using <code>res.send(msg);</code></p>

<p>Is there an option in <code>Express.js's res</code> object to do that after the response was already sent?</p>