org.broadleafcommerce.common.logging
Class SupportLogManager

java.lang.Object
  extended by org.apache.log4j.LogManager
      extended by org.broadleafcommerce.common.logging.SupportLogManager

public class SupportLogManager
extends org.apache.log4j.LogManager

Log4J LogManager extension that adds support for retrieving a specialized Logger instance (SupportLogger). SupportLogger provides support for the SUPPORT log level.

Author:
Jeff Fischer

Field Summary
 
Fields inherited from class org.apache.log4j.LogManager
CONFIGURATOR_CLASS_KEY, DEFAULT_CONFIGURATION_FILE, DEFAULT_CONFIGURATION_KEY, DEFAULT_INIT_OVERRIDE_KEY
 
Constructor Summary
SupportLogManager()
           
 
Method Summary
static SupportLogger getLogger(String moduleName, Class<?> clazz)
          Retrieve a SupportLogger instance
static SupportLogger getLogger(String moduleName, String name)
          Retrieve a SupportLogger instance
 
Methods inherited from class org.apache.log4j.LogManager
exists, getCurrentLoggers, getLogger, getLogger, getLogger, getLoggerRepository, getRootLogger, resetConfiguration, setRepositorySelector, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SupportLogManager

public SupportLogManager()
Method Detail

getLogger

public static SupportLogger getLogger(String moduleName,
                                      String name)
Retrieve a SupportLogger instance

Parameters:
moduleName - The name of the module - will appear in the log message
name - The name for the logger - will appear in the log message
Returns:
the specialized Logger instance supporting the SUPPORT log level

getLogger

public static SupportLogger getLogger(String moduleName,
                                      Class<?> clazz)
Retrieve a SupportLogger instance

Parameters:
moduleName - The name of the module - will appear in the log message
clazz - The class from which the logging is being called - will appear in the log message
Returns:
the specialized Logger instance supporting the SUPPORT log level


Copyright © 2013. All Rights Reserved.