title: Capturing javascript console.log?
body: <blockquote>
  <p><strong>Possible Duplicate:</strong><br />
  <a href="https://stackoverflow.com/questions/9216441/intercept-calls-to-console-log-in-chrome">Intercept calls to console.log in Chrome</a><br />
  <a href="https://stackoverflow.com/questions/9277780/can-i-extend-the-console-object-for-rerouting-the-logging-in-javascript">Can I extend the console object (for rerouting the logging) in javascript?</a></p>
  </blockquote>
  
  <p>When my JS app writes to the <code>console.log</code>, I want to capture that log message so that I can AJAX that log output to the server. How do I do that?</p>
  <p>The code that writes to the log is from external services, which is why I can't just ajax it directly.</p>