title: How do we store the logs produced by morgan logger in a variable in NodeJS?
body: <p>How do we store the logs produced by morgan logger in NodeJS?
  Morgan and morgan-body generate response body in form of logs. How do I store those logs in my database or in a variable so that I can analyze the stored logs?</p>