Possible Duplicate:
Intercept calls to console.log in Chrome
Can I extend the console object (for rerouting the logging) in javascript?
When my JS app writes to the console.log
, I want to capture that log message so that I can AJAX that log output to the server. How do I do that?
The code that writes to the log is from external services, which is why I can't just ajax it directly.