public class SLF4JSupportLoggerAdapter extends AbstractSupportLoggerAdapter implements SupportLoggerAdapter
An SLF4J implementation of SupportLoggerAdapter that will delegate to the configured SLF4J logging framework.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_LEVEL_KEY |
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 and Description |
---|
SLF4JSupportLoggerAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
debug(String message)
In order to be backwards compatible.
|
void |
debug(String message,
Throwable t) |
void |
error(String message) |
void |
error(String message,
Throwable t) |
void |
fatal(String message)
Mapping FATAL to ERROR as the SLF4J API does not contain a fatal level
|
void |
fatal(String message,
Throwable t)
Mapping FATAL to ERROR as the SLF4J API does not contain a fatal level
|
String |
getName() |
int |
getSupportLevel() |
void |
info(String message) |
void |
info(String message,
Throwable t) |
void |
lifecycle(LifeCycleEvent lifeCycleEvent,
String message)
emit a SUPPORT lifecycle message
|
protected void |
mapSupportLevel(String message,
Throwable t) |
void |
setName(String name) |
void |
support(String message)
emit a SUPPORT level message
|
void |
support(String message,
Throwable t)
emit a SUPPORT level message with throwable
|
void |
warn(String message) |
void |
warn(String message,
Throwable t) |
public static final String DEFAULT_LEVEL_KEY
public void support(String message)
SupportLoggerAdapter
support
in interface SupportLoggerAdapter
public void support(String message, Throwable t)
SupportLoggerAdapter
support
in interface SupportLoggerAdapter
public void lifecycle(LifeCycleEvent lifeCycleEvent, String message)
SupportLoggerAdapter
lifecycle
in interface SupportLoggerAdapter
public void debug(String message)
SupportLoggerAdapter
debug
in interface SupportLoggerAdapter
public void debug(String message, Throwable t)
debug
in interface SupportLoggerAdapter
public void error(String message)
error
in interface SupportLoggerAdapter
public void error(String message, Throwable t)
error
in interface SupportLoggerAdapter
public void fatal(String message)
fatal
in interface SupportLoggerAdapter
message
- public void fatal(String message, Throwable t)
fatal
in interface SupportLoggerAdapter
message
- t
- public void info(String message)
info
in interface SupportLoggerAdapter
public void info(String message, Throwable t)
info
in interface SupportLoggerAdapter
public void warn(String message)
warn
in interface SupportLoggerAdapter
public void warn(String message, Throwable t)
warn
in interface SupportLoggerAdapter
public int getSupportLevel()
public String getName()
getName
in interface SupportLoggerAdapter
public void setName(String name)
setName
in interface SupportLoggerAdapter
Copyright © 2019. All rights reserved.