title: Subscribe on console events in a browser
body: <p>Is there a way to subscribe on some console event from javascript on a page?</p>
  
  <p>Usecase: I want to see an alert window on any js error</p>
  
  <p>something like:</p>
  
  <pre><code>console.on('error', =&gt; alert('There is an error! Look in console window'))
  console.on('log', =&gt; alert('Something log to console'))
  </code></pre>
  
  <p>NB: I don't ask about catching an exception. </p>