title: Intercept console logs to file Nodejs
body: <p>I am working on a game using NodeJs, and realized it would be immensly helpful to have access to old <code>console.log</code> output. The mechanics and calculations get rather complicated, and it would be nice to have access to them later to search through and do some data analysis on them to find the correct values for my modifiers (battle mechanics). At the same time, I want to see <code>console.log</code> in the console as well. </p>
  
  <hr>
  
  <p>I know this isn't possible with regular javascript, (see <a href="https://stackoverflow.com/questions/13712788/jquery-console-log-to-file">This</a>), but I was hoping npm had a package of some way to intercept logs and log them to a file on the server. Any thoughts?</p>