Implementation of
Log
that maps directly to a Log4J
Logger. Initial configuration of the corresponding
Logger instances should be done in the usual manner, as outlined in
the Log4J documentation.
debug
public void debug(Object message)
Log a message to the Log4j Logger with DEBUG
priority.
- debug in interface Log
debug
public void debug(Object message,
Throwable t)
Log an error to the Log4j Logger with DEBUG
priority.
- debug in interface Log
error
public void error(Object message)
Log a message to the Log4j Logger with ERROR
priority.
- error in interface Log
error
public void error(Object message,
Throwable t)
Log an error to the Log4j Logger with ERROR
priority.
- error in interface Log
fatal
public void fatal(Object message)
Log a message to the Log4j Logger with FATAL
priority.
- fatal in interface Log
fatal
public void fatal(Object message,
Throwable t)
Log an error to the Log4j Logger with FATAL
priority.
- fatal in interface Log
getLogger
public Logger getLogger()
Return the native Logger instance we are using.
info
public void info(Object message)
Log a message to the Log4j Logger with INFO
priority.
- info in interface Log
info
public void info(Object message,
Throwable t)
Log an error to the Log4j Logger with INFO
priority.
- info in interface Log
isDebugEnabled
public boolean isDebugEnabled()
Check whether the Log4j Logger used is enabled for DEBUG
priority.
- isDebugEnabled in interface Log
isErrorEnabled
public boolean isErrorEnabled()
Check whether the Log4j Logger used is enabled for ERROR
priority.
- isErrorEnabled in interface Log
isFatalEnabled
public boolean isFatalEnabled()
Check whether the Log4j Logger used is enabled for FATAL
priority.
- isFatalEnabled in interface Log
isInfoEnabled
public boolean isInfoEnabled()
Check whether the Log4j Logger used is enabled for INFO
priority.
- isInfoEnabled in interface Log
isTraceEnabled
public boolean isTraceEnabled()
Check whether the Log4j Logger used is enabled for TRACE
priority.
For Log4J, this returns the value of isDebugEnabled()
- isTraceEnabled in interface Log
isWarnEnabled
public boolean isWarnEnabled()
Check whether the Log4j Logger used is enabled for WARN
priority.
- isWarnEnabled in interface Log
trace
public void trace(Object message)
Log a message to the Log4j Logger with TRACE
priority.
Currently logs to DEBUG
level in Log4J.
- trace in interface Log
trace
public void trace(Object message,
Throwable t)
Log an error to the Log4j Logger with TRACE
priority.
Currently logs to DEBUG
level in Log4J.
- trace in interface Log
warn
public void warn(Object message)
Log a message to the Log4j Logger with WARN
priority.
- warn in interface Log
warn
public void warn(Object message,
Throwable t)
Log an error to the Log4j Logger with WARN
priority.
- warn in interface Log