 forker = require "child_process"
 #Third party modules
 zmq = require "zmq"
-logger = require "winston"
+winston = require "winston"
 _ = require "underscore"
 #Hactor modules
 {OutboundAdapter} = require "./../adapters"

    properties.actor

  ###*
    Method that enrich a message with actor details and logs it to the console
    @message {object} the message to log
  ###
  log: (type, message) ->
    # TODO properly configure logging system
    switch type
      when "debug"
        logger.debug "#{validator.getBareURN(@actor)} | #{message}"
        break
      when "info"
        logger.info "#{validator.getBareURN(@actor)} | #{message}"
        break
      when "warn"
        logger.warn "#{validator.getBareURN(@actor)} | #{message}"
        break

  ###*

  Class that defines an Actor
###
class Actor extends EventEmitter

  # Possible running states of an actor
  STATUS_STARTING = "starting"
