Java tutorial
//package com.java2s; //License from project: Apache License import org.slf4j.Logger; public class Main { public static void interruptCurrentThreadWithLog(Logger logger) { logger.info("Thread {} was interrupted", Thread.currentThread()); Thread.currentThread().interrupt(); } }