public class Log4jSormulaLogger extends java.lang.Object implements SormulaLogger
SormulaLogger
that logs using log4j api.Constructor and Description |
---|
Log4jSormulaLogger(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)