public void debug(Throwable throwable) { if(isDebugEnabled()){ if(null == throwable){ logNullThrowable(); }else{ logger.debug(throwable.getMessage(),throwable); } } }
public void error(Throwable throwable) { if(isErrorEnabled()){ if(null == throwable){ logNullThrowable(); }else{ logger.error(throwable.getMessage(),throwable); } } }
public void info(Throwable throwable) { if(isInfoEnabled()){ if(null == throwable){ logNullThrowable(); }else{ logger.info(throwable.getMessage(),throwable); } } }
public void trace(Throwable throwable) { if(isTraceEnabled()){ if(null == throwable){ logNullThrowable(); }else{ logger.trace(throwable.getMessage(),throwable); } } }
public void warn(Throwable throwable) { if(isWarnEnabled()){ if(null == throwable){ logNullThrowable(); }else{ logger.warn(throwable.getMessage(),throwable); } } }
public void info(String msg) { if(isInfoEnabled()){ logger.info(msg); } }
public void trace(String msg) { if(isTraceEnabled()){ logger.trace(msg); } }
public void error(String msg, Throwable throwable) { if(isErrorEnabled()){ logger.error(msg,throwable); } }
public void debug(String msg) { if(isDebugEnabled()){ logger.debug(msg); } }
public void warn(String msg) { if(isWarnEnabled()){ logger.warn(msg); } }
private static Log getSlf4jLogger(Class<?> clazz){ return new SlfLog(org.slf4j.LoggerFactory.getLogger(clazz)); }
static void init() { if(null != Classes.tryForName("ch.qos.logback.classic.LoggerContext")) { initLogback(); } }
private static boolean slf4j() { boolean slf4j = forName("org.slf4j.impl.StaticLoggerBinder"); if(slf4j) { SlfLog.init(); } return slf4j; }
public void info(String msg, Object... args) { if(isInfoEnabled()){ logger.info(msg,args); } }
public void trace(String msg, Object... args) { if(isTraceEnabled()){ logger.trace(msg,args); } }
public void error(String msg) { if(isErrorEnabled()){ logger.error(msg); } }
public void debug(String msg, Throwable throwable) { if(isDebugEnabled()){ logger.debug(msg,throwable); } }
public void warn(String msg, Object... args) { if(isWarnEnabled()){ logger.warn(msg,args); } }
private static Log getSlf4jLogger(String name){ return new SlfLog(org.slf4j.LoggerFactory.getLogger(name)); }
public void info(String msg, Throwable throwable) { if(isInfoEnabled()){ logger.info(msg,throwable); } }