/** * Create a direct executor which consumes and logs errors that are thrown to the default thread error category * {@code "org.jboss.threads.errors"}. * * @param delegate the executor to delegate to * @return the new direct executor */ public static DirectExecutor exceptionLoggingExecutor(final DirectExecutor delegate) { return exceptionLoggingExecutor(delegate, THREAD_ERROR_LOGGER); }
/** * Create a direct executor which consumes and logs errors that are thrown to the default thread error category * {@code "org.jboss.threads.errors"}. * * @param delegate the executor to delegate to * @return the new direct executor */ public static DirectExecutor exceptionLoggingExecutor(final DirectExecutor delegate) { return exceptionLoggingExecutor(delegate, THREAD_ERROR_LOGGER); }
/** * Create a direct executor which consumes and logs errors that are thrown to the default thread error category * {@code "org.jboss.threads.errors"}. * * @param delegate the executor to delegate to * @return the new direct executor */ public static DirectExecutor exceptionLoggingExecutor(final DirectExecutor delegate) { return exceptionLoggingExecutor(delegate, THREAD_ERROR_LOGGER); }
final Logger log = Logger.getLogger((String) it.next()); final Logger.Level level = Logger.Level.valueOf((String) it.next()); return JBossExecutors.exceptionLoggingExecutor(createTaskFilterRecursive(it), log, level);