Java slf4j Logger interruptCurrentThreadWithLog(Logger logger)

Here you can find the source of interruptCurrentThreadWithLog(Logger logger)

Description

interrupt Current Thread With Log

License

Apache License

Declaration

public static void interruptCurrentThreadWithLog(Logger logger) 

Method Source Code


//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();
    }/*from www. ja v a2 s  . com*/
}

Related

  1. info(Logger logger, String msg)
  2. info(Logger logger, String msg, Object... params)
  3. info(String format, Object... arguments)
  4. infoLogging(Logger log, String logMessage, Object[] obj)
  5. infoTimeTaken(final Logger log, final long startTime, final long numItems, final String message, final Object... args)
  6. isLoggable(final Logger logger, final Level level)
  7. isSlf4jPresent()
  8. log(Logger logger, int logLevel, String value)
  9. log(Logger logger, Throwable t)