public class Slf4jSormulaLogger extends java.lang.Object implements SormulaLogger
SormulaLogger
that logs using the SLF4J logging facade library.
If no SLF4J jars are on the classpath, then no exceptions are thrown and no logging will occur.
Constructor and Description |
---|
Slf4jSormulaLogger(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.String message)
Logs debug level message.
|
void |
error(java.lang.String message)
Logs error message.
|
void |
error(java.lang.String message,
java.lang.Throwable throwable)
Logs error message and cause.
|
void |
info(java.lang.String message)
Logs informational message.
|
boolean |
isDebugEnabled()
Reports when messages are logged with
SormulaLogger.debug(String) . |
public void info(java.lang.String message)
SormulaLogger
info
in interface SormulaLogger
message
- message to logpublic void debug(java.lang.String message)
SormulaLogger
debug
in interface SormulaLogger
message
- message to logpublic void error(java.lang.String message)
SormulaLogger
error
in interface SormulaLogger
message
- message to logpublic void error(java.lang.String message, java.lang.Throwable throwable)
SormulaLogger
error
in interface SormulaLogger
message
- message to logthrowable
- error/exception causepublic boolean isDebugEnabled()
SormulaLogger
SormulaLogger.debug(String)
.isDebugEnabled
in interface SormulaLogger
SormulaLogger.debug(String)
; false nothing will be logged with SormulaLogger.debug(String)