title: Winston logger.info is not a function
body: <p>I've set up Winston with transports to MySQL and console and put it in a module called <code>logger</code>. Like so...</p>
  
  <pre><code>// modules/logger.js
  
  /* require statements */
  
  exports.logger = new (winston.Logger)({
      transports: [
          new winstonMysql(winstonMysqlConfig),
          new (winston.transports.Console)
      ]
  });
  </code></pre>
  
  <p>And then in <code>/modules</code></p>
  
  <pre><code>// modules/index.js
  
  /* grab other modules */
  
  exports.logger = require('./logger.js');
  </code></pre>
  
  <p>When I do <code>console.log(modules.logger)</code>, I get this</p>
  
  <pre><code>{ logger: 
      EventEmitter {
          ...
          error: [Function],
          warn: [Function],
          info: [Function],
          verbose: [Function],
          debug: [Function],
          silly: [Function],
          ...
      }
   }
  </code></pre>
  
  <p>But when I call <code>modules.logger.info()</code> it throws <code>modules.logger.info is not a function</code> error. What's wrong?</p>