/** * Get an uncaught exception handler which logs to the given logger. * * @param log the logger * @return the handler */ public static Thread.UncaughtExceptionHandler loggingExceptionHandler(final Logger log) { return new LoggingUncaughtExceptionHandler(log); }
/** * Get an uncaught exception handler which logs to the given logger. * * @param categoryName the name of the logger category to log to * @return the handler */ public static Thread.UncaughtExceptionHandler loggingExceptionHandler(final String categoryName) { return new LoggingUncaughtExceptionHandler(Logger.getLogger(categoryName)); }
/** * Get an uncaught exception handler which logs to the given logger. * * @param log the logger * @return the handler */ public static Thread.UncaughtExceptionHandler loggingExceptionHandler(final Logger log) { return new LoggingUncaughtExceptionHandler(log); }
/** * Get an uncaught exception handler which logs to the given logger. * * @param log the logger * @return the handler */ public static Thread.UncaughtExceptionHandler loggingExceptionHandler(final Logger log) { return new LoggingUncaughtExceptionHandler(log); }
/** * Get an uncaught exception handler which logs to the given logger. * * @param categoryName the name of the logger category to log to * @return the handler */ public static Thread.UncaughtExceptionHandler loggingExceptionHandler(final String categoryName) { return new LoggingUncaughtExceptionHandler(Logger.getLogger(categoryName)); }
/** * Get an uncaught exception handler which logs to the given logger. * * @param categoryName the name of the logger category to log to * @return the handler */ public static Thread.UncaughtExceptionHandler loggingExceptionHandler(final String categoryName) { return new LoggingUncaughtExceptionHandler(Logger.getLogger(categoryName)); }