title: Emitting event in Node.js
body: <p>I'm trying to teach myself both javascript and nodejs at the same time here and have not been able to get custom event emitting working. I am not receiving any errors, just not seeing the event being emitted. Is someone able to point out my (likely obvious) logical error?</p>
  
  <p>I have a class declared in a separate module:</p>
  
  <pre><code>var util = require( 'util' ),
  events = require( 'events' );
  
  
  function logger(){
      var logpath, initialised, logstream;
      events.EventEmitter.call(this);
  }
  util.inherits(logger, events.EventEmitter);
  
  logger.prototype.init = function(){
      this.emit( 'initialised' );
  }
  
  exports.logger = logger;
  </code></pre>
  
  <p>And then a main file:</p>
  
  <pre><code>var logger = require( "./logManager" ).logger;
  
  var myLogger = new logger;
  
  myLogger.init();
  
  myLogger.on( 'initialised' ){
       console.log( "IT'S ALIVE!" );
  }
  </code></pre>