Here you can find the source of logError(Logger log, Throwable t, String message)
public static void logError(Logger log, Throwable t, String message)
//package com.java2s; /******************************************************************************* * Copyright (c) 2014 Weasis Team./* w ww.jav a2s. c o m*/ * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Nicolas Roduit - initial API and implementation *******************************************************************************/ import org.slf4j.Logger; public class Main { public static void logError(Logger log, Throwable t, String message) { if (log.isDebugEnabled()) { log.error(message, t); } else { log.error(t.getMessage()); } } }