|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.logging.impl.Log4JCategoryLog
Implementation of Log
that maps directly to a Log4J
Category. Initial configuration of the corresponding
Category instances should be done in the usual manner, as outlined in
the Log4J documentation.
Field Summary | |
private org.apache.log4j.Category |
category
Log to this category |
Constructor Summary | |
Log4JCategoryLog(org.apache.log4j.Category category)
For use with a log4j factory |
|
Log4JCategoryLog(java.lang.String name)
Base constructor |
Method Summary | |
void |
debug(java.lang.Object message)
Log a message to the Log4j Category with DEBUG priority. |
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Log an error to the Log4j Category with DEBUG priority. |
void |
error(java.lang.Object message)
Log a message to the Log4j Category with ERROR priority. |
void |
error(java.lang.Object message,
java.lang.Throwable t)
Log an error to the Log4j Category with ERROR priority. |
void |
fatal(java.lang.Object message)
Log a message to the Log4j Category with FATAL priority. |
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Log an error to the Log4j Category with FATAL priority. |
void |
info(java.lang.Object message)
Log a message to the Log4j Category with INFO priority. |
void |
info(java.lang.Object message,
java.lang.Throwable t)
Log an error to the Log4j Category with INFO priority. |
boolean |
isDebugEnabled()
Check whether the Log4j Category used is enabled for DEBUG priority. |
boolean |
isErrorEnabled()
Check whether the Log4j Category used is enabled for ERROR priority. |
boolean |
isFatalEnabled()
Check whether the Log4j Category used is enabled for FATAL priority. |
boolean |
isInfoEnabled()
Check whether the Log4j Category used is enabled for INFO priority. |
boolean |
isTraceEnabled()
Check whether the Log4j Category used is enabled for TRACE priority. |
boolean |
isWarnEnabled()
Check whether the Log4j Category used is enabled for WARN priority. |
void |
trace(java.lang.Object message)
Log a message to the Log4j Category with TRACE priority. |
void |
trace(java.lang.Object message,
java.lang.Throwable t)
Log an error to the Log4j Category with TRACE priority. |
void |
warn(java.lang.Object message)
Log a message to the Log4j Category with WARN priority. |
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Log an error to the Log4j Category with WARN priority. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private org.apache.log4j.Category category
Constructor Detail |
public Log4JCategoryLog(java.lang.String name)
public Log4JCategoryLog(org.apache.log4j.Category category)
Method Detail |
public void trace(java.lang.Object message)
TRACE
priority.
Currently logs to DEBUG
level in Log4J.
trace
in interface Log
message
- log this messagepublic void trace(java.lang.Object message, java.lang.Throwable t)
TRACE
priority.
Currently logs to DEBUG
level in Log4J.
trace
in interface Log
message
- log this messaget
- log this causepublic void debug(java.lang.Object message)
DEBUG
priority.
debug
in interface Log
message
- log this messagepublic void debug(java.lang.Object message, java.lang.Throwable t)
DEBUG
priority.
debug
in interface Log
message
- log this messaget
- log this causepublic void info(java.lang.Object message)
INFO
priority.
info
in interface Log
message
- log this messagepublic void info(java.lang.Object message, java.lang.Throwable t)
INFO
priority.
info
in interface Log
message
- log this messaget
- log this causepublic void warn(java.lang.Object message)
WARN
priority.
warn
in interface Log
message
- log this messagepublic void warn(java.lang.Object message, java.lang.Throwable t)
WARN
priority.
warn
in interface Log
message
- log this messaget
- log this causepublic void error(java.lang.Object message)
ERROR
priority.
error
in interface Log
message
- log this messagepublic void error(java.lang.Object message, java.lang.Throwable t)
ERROR
priority.
error
in interface Log
message
- log this messaget
- log this causepublic void fatal(java.lang.Object message)
FATAL
priority.
fatal
in interface Log
message
- log this messagepublic void fatal(java.lang.Object message, java.lang.Throwable t)
FATAL
priority.
fatal
in interface Log
message
- log this messaget
- log this causepublic boolean isDebugEnabled()
DEBUG
priority.
isDebugEnabled
in interface Log
public boolean isErrorEnabled()
ERROR
priority.
isErrorEnabled
in interface Log
public boolean isFatalEnabled()
FATAL
priority.
isFatalEnabled
in interface Log
public boolean isInfoEnabled()
INFO
priority.
isInfoEnabled
in interface Log
public boolean isTraceEnabled()
TRACE
priority.
For Log4J, this returns the value of isDebugEnabled()
isTraceEnabled
in interface Log
public boolean isWarnEnabled()
WARN
priority.
isWarnEnabled
in interface Log
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |