It is possible.
Just override the WebViewClient for your WebView as follows:
webView.setWebChromeClient(new WebChromeClient() { @Override public boolean onConsoleMessage(ConsoleMessage cm) { Log.d("TAG", cm.message() + " at " + cm.sourceId() + ":" + cm.lineNumber()); return true; } });
You can, of course, comment on a log line or simply create a log class and disable logging when creating an assembly.
source share