title: exporting console.log from a module in node.js
body: <p>I'm using a customized version of <a href="https://github.com/epeli/node-clim" rel="nofollow">node-clim</a>, but I want to put away all the customization code in a module of its own and <code>require()</code> it in my main app. But I can't seem to do that..</p>
  
  <p>This code works</p>
  
  <pre><code>var util = require('util');
  var clim = require('clim')
  clim.logWrite = function(level, prefixes, msg) {
      ...
      customizing code
      ...
      process.stderr.write(...);
  };
  
  var console = clim();
  
  console.log('hey'); // works
  </code></pre>
  
  <p>But in trying to put the above in a separate file <code>clim.js</code> and exporting the console object...</p>
  
  <pre><code>module.export = console;
  </code></pre>
  
  <p>and <code>require()</code>ing it in my main app doesn't work..</p>
  
  <pre><code>var console = require('./clim');
  console.log('hey');
  //      ^ TypeError: Object #&lt;Object&gt; has no method 'log'
  </code></pre>
  
  <p>What am I doing wrong?</p>