Here you can find the source of get(Class> clazz)
public static Logger get(Class<?> clazz)
//package com.java2s; //License from project: Apache License import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class Main { public static Logger get(Class<?> clazz) { return LoggerFactory.getLogger(clazz); }//from ww w.java 2 s . c om public static Logger get(String name) { return LoggerFactory.getLogger(name); } public static Logger get() { StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace(); return LoggerFactory.getLogger(stackTrace[2].getClassName()); } }