org.broadleafcommerce.common.logging.SupportLoggerAdapter Maven / Gradle / Ivy
/*
* #%L
* BroadleafCommerce Common Libraries
* %%
* Copyright (C) 2009 - 2014 Broadleaf Commerce
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
package org.broadleafcommerce.common.logging;
/**
* @author Elbert Bautista (elbertbautista)
*/
public interface SupportLoggerAdapter {
public String getName();
public void setName(String name);
/**
* emit a SUPPORT level message
* @param message
*/
public void support(String message);
/**
* emit a SUPPORT level message with throwable
* @param message
* @param t
*/
public void support(String message, Throwable t);
/**
* emit a SUPPORT lifecycle message
* @param lifeCycleEvent
* @param message
*/
public void lifecycle(LifeCycleEvent lifeCycleEvent, String message);
/**
* In order to be backwards compatible. The support logger should also support
* the debug, error, fatal, info, and warn levels as well.
* @param message
*/
public void debug(String message);
public void debug(String message, Throwable t);
public void error(String message);
public void error(String message, Throwable t);
public void fatal(String message);
public void fatal(String message, Throwable t);
public void info(String message);
public void info(String message, Throwable t);
public void warn(String message);
public void warn(String message, Throwable t);
}