title: How to catch all javascript warnings and errors to an output div?
body: <p>i'm using try, catch, for debugging, but warnings is not create exceptions. How to get all javascript warnings and errors to output div?</p>
  
  <p><strong>UPDATED:</strong> 
  If browser supports Afaik logging, how to get that log to string or output div?</p>
  
  <p><strong>UPDATED:</strong> 
  I found the way how to do that:
  i can reload console.log function to my custom function an call native console.log function.</p>