class CustomThreadFactory implements ThreadFactory, UncaughtExceptionHandler {

	public void uncaughtException(Thread thread, Throwable throwable) {
		logger.error("Uncaught Exception in thread "+ thread.getName(), throwable);
	}

	public  CustomThreadFactory(String threadName, boolean daemon);

}