title: Thunderbird extension console logging
body: <p>I have the following code in my bootstrapped Thunderbird add-on main.js file:</p>
  
  <pre><code>exports.main = function() {
      console.log("abc");
  };
  </code></pre>
  
  <p>When I run this code in FireFox in Add-on Builder, I get this message displayed in FireFox Error Console:</p>
  
  <pre><code>info: vladp: abc
  </code></pre>
  
  <p>However, when I run my extension in Thunderbird nothing is displayed. I have set up the development enviroment as described here: <a href="https://developer.mozilla.org/en-US/docs/Setting_up_extension_development_environment" rel="nofollow">https://developer.mozilla.org/en-US/docs/Setting_up_extension_development_environment</a></p>
  
  <p>How do I make it work in Thunderbird Error Console? Or is there any other way to log some debug information, apart from "dump()"?</p>
  
  <p><strong>UPDATE 1</strong></p>
  
  <p>As suggested by speedball2001, I've changed my code to:</p>
  
  <pre><code>exports.main = function() { 
      var Application = Components.classes["@mozilla.org/steel/application;1"].getService(Components.interfaces.steelIApplication);
      Application.console.log('Bam!');
  };
  </code></pre>
  
  <p>However, when I run Thunderbird, I get the following error in error console:</p>
  
  <pre><code>Timestamp: 2013.05.22. 16:39:07
  Error: myfirstext: An exception occurred.
  ReferenceError: Components is not defined
  resource://jid0-7yp22cmsooypei7nicamg3n0ha0-at-jetpack/myfirstext/lib/main.js 57
  </code></pre>
  
  <p>How do I fix it?</p>