title: How to extend JavaScript console in WebView (to match ConsoleMessage.MessageLevel)
body: <p><a href="http://developer.android.com/guide/webapps/debugging.html" rel="nofollow">Debugging Web Apps</a>:</p>
  
  <blockquote>
    <p>Android's WebKit does not implement all of the console APIs available in other desktop browsers. You can, however, use the basic text logging functions:</p>
  
  <pre><code>console.log(String)
  console.info(String)
  console.warn(String)
  console.error(String)
  </code></pre>
    
    <p>Other console functions don't raise errors, but might not behave the same as what you expect from other web browsers.</p>
  </blockquote>
  
  <p><br/></p>
  
  <p><a href="http://developer.android.com/reference/android/webkit/ConsoleMessage.MessageLevel.html" rel="nofollow">android.webkit.ConsoleMessage.MessageLevel</a>:</p>
  
  <blockquote>
    <p>ConsoleMessage.MessageLevel   DEBUG<br>
    ConsoleMessage.MessageLevel   ERROR<br>
    ConsoleMessage.MessageLevel    LOG<br>
    ConsoleMessage.MessageLevel    TIP<br>
    ConsoleMessage.MessageLevel    WARNING     </p>
  </blockquote>
  
  <hr>
  
  <p>While Developing a webapp-native-hybrid especially for an Android-Device I was happy to be able to merge the JavaScript-console with the ordinary LogCat. But what a pity: there is a console.debug which results in MessageLevel.INFO and no console.verbose() at all (error get thrown).</p>