Here you can find the source of debug(Logger logger, Exception e)
public static void debug(Logger logger, Exception e)
//package com.java2s; //License from project: Open Source License import org.slf4j.Logger; public class Main { public static void debug(Logger logger, String msg) { if (logger.isDebugEnabled()) { logger.debug(msg);// w w w . j av a 2s. co m } } public static void debug(Logger logger, Exception e) { if (logger.isDebugEnabled()) { logger.debug(e.getMessage(), e); } } public static void debug(Logger logger, String msg, Object... objects) { if (logger.isDebugEnabled()) { logger.debug(msg, objects); } } }