title: Chrome: redirect console.log to stdout
body: <p>I am investigating easy ways to reuse tests that output the <a href="https://en.wikipedia.org/wiki/Test_Anything_Protocol" rel="noreferrer">TAP</a> format.</p>
  
  <p>I want to be able to start Chrome from the command line and capture console.log output</p>
  
  <p>If I have the following file called <code>index.html</code></p>
  
  <pre><code>&lt;script&gt;
    console.log('beep boop!')
  &lt;/script&gt;
  </code></pre>
  
  <p>...can I then capture from the command line by doing something like this:</p>
  
  <pre><code># start-crome --flag &gt; out.txt
  </code></pre>
  
  <p>...and have out.txt contain "beep boop!"?</p>
  
  <p><strong>EDIT:</strong> Yes there are other questions that cover saving console.log to file manually. I want to pipe console log to stdout, so that debug information can be analysed in an automated unix setting</p>