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