Here you can find the source of info(String format, Object... arguments)
public static void info(String format, Object... arguments)
//package com.java2s; //License from project: Apache License import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Main { public static void info(String format, Object... arguments) { info(innerGet(), format, arguments); }//from w w w . ja v a 2 s. co m public static void info(Logger log, String format, Object... arguments) { log.info(format, arguments); } private static Logger innerGet() { StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace(); return LoggerFactory.getLogger(stackTrace[3].getClassName()); } }