log module updated now uses proper EventEmitter