}
}
}
public void log(@Observes final Object event) {
final Log log = event.getClass().getAnnotation(Log.class);
if (log == null) {
return;
}
final Logger logger = Logger.getLogger(event.getClass().getName());
try {
final Level level = Level.parse(log.value().name());
if (logger.isLoggable(level)) {
logger.log(level, event.toString());
}