Here you can find the source of setLogger(Logger logger)
public static void setLogger(Logger logger)
//package com.java2s; //License from project: Apache License import org.slf4j.Logger; public class Main { private static ThreadLocal<Logger> currentLogger = new ThreadLocal<Logger>(); public static void setLogger(Logger logger) { currentLogger.set(logger);// www .j a va 2s. com } }