I'm using the console log to record any errors in a HTML/JS web application. Is there a way to output the contents of the console log?
For instance, lets say we log "Hello world" console.log('Hello world');
Is there a way I can get back what's been logged at a later time? Something like:
alert(console.log());
Thanks in advance!
logmethod of theconsoleobject.console.log = function() { // store the logged data }, however you have only access to the manually logged data not those that are generated by browser. You may find this library useful, github.com/occ/TraceKit