title: Node.js console.log() in txt file
body: <p>I have another question (<a href="https://stackoverflow.com/questions/41218868/how-do-i-export-an-array-with-module-exports-in-node-js">last question</a>). At the moment i am working on a Node.js project and in this I have <strong>many</strong> console.log() functions. This has worked okay so far but I also want everything that's written to the console to <em>also</em> be written in a log-file. Can someone please help me? </p>
  
  <p>For example:</p>
  
  <pre><code>Console.log('The value of array position [5] is '+ array[5]);
  </code></pre>
  
  <p>In my real code its a bit more but this should give you an idea.</p>
  
  <p>Thank you hopefully.</p>