Here you can find the source of setDefaultLogger()
public static void setDefaultLogger()
//package com.java2s; //License from project: Apache License import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Main { private static ThreadLocal<Logger> currentLogger = new ThreadLocal<Logger>(); private static Logger defaultLogger = LoggerFactory.getLogger("defaultLogger"); public static void setDefaultLogger() { currentLogger.set(defaultLogger); }/*from w w w.ja va 2 s .co m*/ }