'Raise the event `name`.'

def raise_event(self, name, **kwargs):

    data = truncate_text(str(kwargs), width=500)
    logger.debug("Application    event    '%s'    with    event    data    %s", name, data)
    for func in list(self._event_handlers[name]):
        func(**kwargs)
