raiseCatching

fun <T> Events.raiseCatching(definition: EventDefinition<T>, value: T, logger: Logger? = null)

Raises an event the same way as Events.raise but catches an exception and logs it if the logger is provided