title: Is there a Node.js console.log length limit?
body: <p>Is there a limit the length of console.log output in Node.js?  The following prints numbers up to 56462, then stops.  This came up because we were returning datasets from MySQL and the output would just quit after 327k characters. </p>
  
  <pre><code>var out = ""; 
  for (i = 0; i &lt; 100000; i++) {
      out += " " + i; 
  }
  
  console.log(out); 
  </code></pre>
  
  <p>The string itself seems fine, as this returns the last few numbers up to 99999:</p>
  
  <pre><code>console.log(out.substring(out.length - 23)); 
  </code></pre>
  
  <p>Returns: </p>
  
  <pre><code>99996 99997 99998 99999
  </code></pre>
  
  <p>This is using Node v0.6.14. </p>