e log messages -->
    &lt;script type=&quot;application/javascript&quot; src=&quot;console-log-html.min.js&quot;>&lt;/script>
    &lt;script>
        ConsoleLogHTML.connect(document.getElementById(&quot;myULContainer&quot;)); // Redirect log messages
        ConsoleLogHTML.disconnect(); // Stop redirecting
    &lt;/script></code></pre><p>You can also instruct the script to only log to the console by passing a second argument to <code>console.*()</code>, e.g.:</p>
<pre class="prettyprint source lang-javascr