|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.asterisk.util.impl.Log4JLogger
public class Log4JLogger
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.
Constructor Summary | |
---|---|
Log4JLogger()
|
|
Log4JLogger(java.lang.Class clazz)
Base constructor. |
Method Summary | |
---|---|
void |
debug(java.lang.Object message)
Log a message to the Log4j Logger with DEBUG priority. |
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Log an error to the Log4j Logger with DEBUG priority. |
void |
error(java.lang.Object message)
Log a message to the Log4j Logger with ERROR priority. |
void |
error(java.lang.Object message,
java.lang.Throwable t)
Log an error to the Log4j Logger with ERROR priority. |
void |
fatal(java.lang.Object message)
Log a message to the Log4j Logger with FATAL priority. |
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Log an error to the Log4j Logger with FATAL priority. |
org.apache.log4j.Logger |
getLogger()
Return the native Logger instance we are using. |
void |
info(java.lang.Object message)
Log a message to the Log4j Logger with INFO priority. |
void |
info(java.lang.Object message,
java.lang.Throwable t)
Log an error to the Log4j Logger with INFO priority. |
boolean |
isDebugEnabled()
Check whether the Log4j Logger used is enabled for DEBUG
priority. |
boolean |
isErrorEnabled()
Check whether the Log4j Logger used is enabled for ERROR
priority. |
boolean |
isFatalEnabled()
Check whether the Log4j Logger used is enabled for FATAL
priority. |
boolean |
isInfoEnabled()
Check whether the Log4j Logger used is enabled for INFO
priority. |
boolean |
isTraceEnabled()
Check whether the Log4j Logger used is enabled for TRACE
priority. |
boolean |
isWarnEnabled()
Check whether the Log4j Logger used is enabled for WARN
priority. |
void |
trace(java.lang.Object message)
Log a message to the Log4j Logger with TRACE priority. |
void |
trace(java.lang.Object message,
java.lang.Throwable t)
Log an error to the Log4j Logger with TRACE priority. |
void |
warn(java.lang.Object message)
Log a message to the Log4j Logger with WARN priority. |
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Log an error to the Log4j Logger with WARN priority. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Log4JLogger()
public Log4JLogger(java.lang.Class clazz)
Method Detail |
---|
public void trace(java.lang.Object message)
TRACE
priority.
Currently logs to DEBUG
level in Log4J.
public void trace(java.lang.Object message, java.lang.Throwable t)
TRACE
priority.
Currently logs to DEBUG
level in Log4J.
public void debug(java.lang.Object message)
DEBUG
priority.
debug
in interface Log
public void debug(java.lang.Object message, java.lang.Throwable t)
DEBUG
priority.
public void info(java.lang.Object message)
INFO
priority.
info
in interface Log
public void info(java.lang.Object message, java.lang.Throwable t)
INFO
priority.
public void warn(java.lang.Object message)
WARN
priority.
warn
in interface Log
public void warn(java.lang.Object message, java.lang.Throwable t)
WARN
priority.
warn
in interface Log
public void error(java.lang.Object message)
ERROR
priority.
error
in interface Log
public void error(java.lang.Object message, java.lang.Throwable t)
ERROR
priority.
error
in interface Log
public void fatal(java.lang.Object message)
FATAL
priority.
public void fatal(java.lang.Object message, java.lang.Throwable t)
FATAL
priority.
public org.apache.log4j.Logger getLogger()
public boolean isDebugEnabled()
DEBUG
priority.
public boolean isErrorEnabled()
ERROR
priority.
public boolean isFatalEnabled()
FATAL
priority.
public boolean isInfoEnabled()
INFO
priority.
public boolean isTraceEnabled()
TRACE
priority. For Log4J, this returns the value of
isDebugEnabled()
public boolean isWarnEnabled()
WARN
priority.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |