How to read the browser logs?

3

I'm creating a page in html that should display the all browser logs (% with%). So that when there is a script error I can access this page and view the browser logs.

    
asked by anonymous 01.03.2016 / 19:33

1 answer

-1

You can override the function, but you must overwrite it if the page is updated:

<script>
/* coloque aqui a funcionalidade que deseja */
console.log = function(arg){ alert(arg); };

console.log('ola');
</script>

Abcs!

    
23.03.2016 / 11:50