org.broadleafcommerce.common.logging
Class SupportLogger

java.lang.Object
  extended by org.apache.log4j.Category
      extended by org.apache.log4j.Logger
          extended by org.broadleafcommerce.common.logging.SupportLogger
All Implemented Interfaces:
org.apache.log4j.spi.AppenderAttachable

public class SupportLogger
extends org.apache.log4j.Logger

Extend Log4J Logger implementation to provide support for the new SUPPORT log level type.

Author:
Jeff Fischer

Field Summary
protected  String moduleName
           
 
Fields inherited from class org.apache.log4j.Category
additive, level, name, parent, repository, resourceBundle
 
Constructor Summary
SupportLogger(String moduleName, String name)
           
 
Method Summary
 void lifecycle(LifeCycleEvent lifeCycleEvent, Object message)
          Generate a specialized SUPPORT level log message that includes a LifeCycleEvent in the message.
 void support(Object message)
          Generate a SUPPORT level log message
 void support(Object message, Throwable t)
          Generate a SUPPORT level log message with an accompanying Throwable
 
Methods inherited from class org.apache.log4j.Logger
getLogger, getLogger, getLogger, getRootLogger, isTraceEnabled, trace, trace
 
Methods inherited from class org.apache.log4j.Category
addAppender, assertLog, callAppenders, debug, debug, error, error, exists, fatal, fatal, forcedLog, getAdditivity, getAllAppenders, getAppender, getChainedPriority, getCurrentCategories, getDefaultHierarchy, getEffectiveLevel, getHierarchy, getInstance, getInstance, getLevel, getLoggerRepository, getName, getParent, getPriority, getResourceBundle, getResourceBundleString, getRoot, info, info, isAttached, isDebugEnabled, isEnabledFor, isInfoEnabled, l7dlog, l7dlog, log, log, log, removeAllAppenders, removeAppender, removeAppender, setAdditivity, setLevel, setPriority, setResourceBundle, shutdown, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

moduleName

protected String moduleName
Constructor Detail

SupportLogger

public SupportLogger(String moduleName,
                     String name)
Method Detail

support

public void support(Object message)
Generate a SUPPORT level log message

Parameters:
message - the log message

support

public void support(Object message,
                    Throwable t)
Generate a SUPPORT level log message with an accompanying Throwable

Parameters:
message - the log message
t - the exception to accompany the log message - will result in a stack track in the log

lifecycle

public void lifecycle(LifeCycleEvent lifeCycleEvent,
                      Object message)
Generate a specialized SUPPORT level log message that includes a LifeCycleEvent in the message.

Parameters:
lifeCycleEvent - The module life cycle type for this log message
message - the log message


Copyright © 2013. All Rights Reserved.