   cluster.on 'listening', (worker, address) ->
     logger.debug "worker #{worker.process.pid} is now connected to #{address.address}:#{address.port}"
 else
+  # configure worker logger
+  logger.add logger.transports.Console,
+    colorize: true
+    label: "worker#{cluster.worker.id}"
+    level: config.logger.level
+
   # Configure mongose to connect to mongo
   mongoose.connect config.mongo.url
 

      # restart on message
      process.on 'message', (msg) ->
        if msg is 'restart'
          console.log 'calling restart'
          restartServer()





  exports.startRestartServerAgenda = (done) ->
    # notify master to restart all workers in 2s
    setTimeout ->
      logger.debug 'Sending restart cluster message...'
      process.send('restart-all')
    , 2000
