'Override __init__ to do logger setup earlier so it can
go to our logger object instead of stdout'

def prebind(self, sock, logger_object):

    from supervisor.medusa import logger
    if (not logger_object):
        logger_object = logger.file_logger(sys.stdout)
    logger_object = logger.unresolving_logger(logger_object)
    self.logger = logger_object
    asyncore.dispatcher.__init__(self)
    self.set_socket(sock)
    self.handlers = []
    sock.setblocking(0)
    self.set_reuse_addr()
