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 TypeMethodDescriptionvoid
In order to be backwards compatible.void
void
void
void
Mapping FATAL to ERROR as the SLF4J API does not contain a fatal levelvoid
Mapping FATAL to ERROR as the SLF4J API does not contain a fatal levelgetName()
int
void
void
void
lifecycle
(LifeCycleEvent lifeCycleEvent, String message) emit a SUPPORT lifecycle messageprotected void
mapSupportLevel
(String message, Throwable t) void
void
emit a SUPPORT level messagevoid
emit a SUPPORT level message with throwablevoid
void
-
Field Details
-
DEFAULT_LEVEL_KEY
- See Also:
-
-
Constructor Details
-
SLF4JSupportLoggerAdapter
public SLF4JSupportLoggerAdapter()
-
-
Method Details
-
support
Description copied from interface:SupportLoggerAdapter
emit a SUPPORT level message- Specified by:
support
in interfaceSupportLoggerAdapter
-
support
Description copied from interface:SupportLoggerAdapter
emit a SUPPORT level message with throwable- Specified by:
support
in interfaceSupportLoggerAdapter
-
lifecycle
Description copied from interface:SupportLoggerAdapter
emit a SUPPORT lifecycle message- Specified by:
lifecycle
in interfaceSupportLoggerAdapter
-
debug
Description copied from interface:SupportLoggerAdapter
In order to be backwards compatible. The support logger should also support the debug, error, fatal, info, and warn levels as well.- Specified by:
debug
in interfaceSupportLoggerAdapter
-
debug
- Specified by:
debug
in interfaceSupportLoggerAdapter
-
error
- Specified by:
error
in interfaceSupportLoggerAdapter
-
error
- Specified by:
error
in interfaceSupportLoggerAdapter
-
fatal
Mapping FATAL to ERROR as the SLF4J API does not contain a fatal level- Specified by:
fatal
in interfaceSupportLoggerAdapter
- Parameters:
message
-
-
fatal
Mapping FATAL to ERROR as the SLF4J API does not contain a fatal level- Specified by:
fatal
in interfaceSupportLoggerAdapter
- Parameters:
message
-t
-
-
info
- Specified by:
info
in interfaceSupportLoggerAdapter
-
info
- Specified by:
info
in interfaceSupportLoggerAdapter
-
warn
- Specified by:
warn
in interfaceSupportLoggerAdapter
-
warn
- Specified by:
warn
in interfaceSupportLoggerAdapter
-
mapSupportLevel
-
getSupportLevel
public int getSupportLevel() -
getName
- Specified by:
getName
in interfaceSupportLoggerAdapter
-
setName
- Specified by:
setName
in interfaceSupportLoggerAdapter
-