Class SLF4JSupportLoggerAdapter
java.lang.Object
org.broadleafcommerce.common.logging.AbstractSupportLoggerAdapter
org.broadleafcommerce.common.logging.SLF4JSupportLoggerAdapter
- All Implemented Interfaces:
SupportLoggerAdapter
public class SLF4JSupportLoggerAdapter
extends AbstractSupportLoggerAdapter
implements SupportLoggerAdapter
An SLF4J implementation of SupportLoggerAdapter that will delegate to the configured SLF4J logging framework.
- Author:
- Elbert Bautista (elbertbautista)
-
Field Summary
FieldsFields inherited from class org.broadleafcommerce.common.logging.AbstractSupportLoggerAdapter
DEBUG, ERROR, FATAL, INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_FATAL, LOG_LEVEL_INFO, LOG_LEVEL_SUPPORT, LOG_LEVEL_TRACE, LOG_LEVEL_WARN, SUPPORT, TRACE, WARN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidIn order to be backwards compatible.voidvoidvoidvoidMapping FATAL to ERROR as the SLF4J API does not contain a fatal levelvoidMapping FATAL to ERROR as the SLF4J API does not contain a fatal levelgetName()intvoidvoidvoidlifecycle(LifeCycleEvent lifeCycleEvent, String message) emit a SUPPORT lifecycle messageprotected voidmapSupportLevel(String message, Throwable t) voidvoidemit a SUPPORT level messagevoidemit a SUPPORT level message with throwablevoidvoid
-
Field Details
-
DEFAULT_LEVEL_KEY
- See Also:
-
-
Constructor Details
-
SLF4JSupportLoggerAdapter
public SLF4JSupportLoggerAdapter()
-
-
Method Details
-
support
Description copied from interface:SupportLoggerAdapteremit a SUPPORT level message- Specified by:
supportin interfaceSupportLoggerAdapter
-
support
Description copied from interface:SupportLoggerAdapteremit a SUPPORT level message with throwable- Specified by:
supportin interfaceSupportLoggerAdapter
-
lifecycle
Description copied from interface:SupportLoggerAdapteremit a SUPPORT lifecycle message- Specified by:
lifecyclein interfaceSupportLoggerAdapter
-
debug
Description copied from interface:SupportLoggerAdapterIn order to be backwards compatible. The support logger should also support the debug, error, fatal, info, and warn levels as well.- Specified by:
debugin interfaceSupportLoggerAdapter
-
debug
- Specified by:
debugin interfaceSupportLoggerAdapter
-
error
- Specified by:
errorin interfaceSupportLoggerAdapter
-
error
- Specified by:
errorin interfaceSupportLoggerAdapter
-
fatal
Mapping FATAL to ERROR as the SLF4J API does not contain a fatal level- Specified by:
fatalin interfaceSupportLoggerAdapter- Parameters:
message-
-
fatal
Mapping FATAL to ERROR as the SLF4J API does not contain a fatal level- Specified by:
fatalin interfaceSupportLoggerAdapter- Parameters:
message-t-
-
info
- Specified by:
infoin interfaceSupportLoggerAdapter
-
info
- Specified by:
infoin interfaceSupportLoggerAdapter
-
warn
- Specified by:
warnin interfaceSupportLoggerAdapter
-
warn
- Specified by:
warnin interfaceSupportLoggerAdapter
-
mapSupportLevel
-
getSupportLevel
public int getSupportLevel() -
getName
- Specified by:
getNamein interfaceSupportLoggerAdapter
-
setName
- Specified by:
setNamein interfaceSupportLoggerAdapter
-