title: how can I override console.log() and prepend a word at the beginning of the output?
body: <p>I have the function Log which prints data along with passed arguments, how can I print the content &amp; at the same time always print the word &quot;Report: &quot; at the beginning of the log.</p>
  <pre><code>function Log(){
      if (app.debug_logs){
          if(console &amp;&amp; console.log){
              console.log.apply(console, &quot;Report: &quot; + arguments);
          }
      }
  }
  
  Log(&quot; error occurred &quot;, &quot; on this log... &quot;);
  </code></pre>
  <p>I want to have:
  &quot;Report: error occurred on this log...&quot;</p>
  <p>Thanks.</p>