|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.logging.impl.Log4JLogger
Implementation of Log
that maps directly to a
Logger for log4J version 1.2.
Initial configuration of the corresponding Logger instances should be done in the usual manner, as outlined in the Log4J documentation.
The reason this logger is distinct from the 1.3 logger is that in version 1.2 of Log4J:
Constructor Summary | |
Log4JLogger()
|
|
Log4JLogger(org.apache.log4j.Logger logger)
For use with a log4j factory. |
|
Log4JLogger(java.lang.String name)
Base constructor. |
Method Summary | |
void |
debug(java.lang.Object message)
Logs a message with org.apache.log4j.Priority.DEBUG . |
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Logs a message with org.apache.log4j.Priority.DEBUG . |
void |
error(java.lang.Object message)
Logs a message with org.apache.log4j.Priority.ERROR . |
void |
error(java.lang.Object message,
java.lang.Throwable t)
Logs a message with org.apache.log4j.Priority.ERROR . |
void |
fatal(java.lang.Object message)
Logs a message with org.apache.log4j.Priority.FATAL . |
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Logs a message with org.apache.log4j.Priority.FATAL . |
org.apache.log4j.Logger |
getLogger()
Return the native Logger instance we are using. |
void |
info(java.lang.Object message)
Logs a message with org.apache.log4j.Priority.INFO . |
void |
info(java.lang.Object message,
java.lang.Throwable t)
Logs a message with org.apache.log4j.Priority.INFO . |
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)
Logs a message with org.apache.log4j.Priority.TRACE . |
void |
trace(java.lang.Object message,
java.lang.Throwable t)
Logs a message with org.apache.log4j.Priority.TRACE . |
void |
warn(java.lang.Object message)
Logs a message with org.apache.log4j.Priority.WARN . |
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Logs a message with org.apache.log4j.Priority.WARN . |
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.String name)
public Log4JLogger(org.apache.log4j.Logger logger)
Method Detail |
public void trace(java.lang.Object message)
org.apache.log4j.Priority.TRACE
.
When using a log4j version that does not support the TRACE
level, the message will be logged at the DEBUG
level.
trace
in interface Log
message
- to logLog.trace(Object)
public void trace(java.lang.Object message, java.lang.Throwable t)
org.apache.log4j.Priority.TRACE
.
When using a log4j version that does not support the TRACE
level, the message will be logged at the DEBUG
level.
trace
in interface Log
message
- to logt
- log this causeLog.trace(Object, Throwable)
public void debug(java.lang.Object message)
org.apache.log4j.Priority.DEBUG
.
debug
in interface Log
message
- to logLog.debug(Object)
public void debug(java.lang.Object message, java.lang.Throwable t)
org.apache.log4j.Priority.DEBUG
.
debug
in interface Log
message
- to logt
- log this causeLog.debug(Object, Throwable)
public void info(java.lang.Object message)
org.apache.log4j.Priority.INFO
.
info
in interface Log
message
- to logLog.info(Object)
public void info(java.lang.Object message, java.lang.Throwable t)
org.apache.log4j.Priority.INFO
.
info
in interface Log
message
- to logt
- log this causeLog.info(Object, Throwable)
public void warn(java.lang.Object message)
org.apache.log4j.Priority.WARN
.
warn
in interface Log
message
- to logLog.warn(Object)
public void warn(java.lang.Object message, java.lang.Throwable t)
org.apache.log4j.Priority.WARN
.
warn
in interface Log
message
- to logt
- log this causeLog.warn(Object, Throwable)
public void error(java.lang.Object message)
org.apache.log4j.Priority.ERROR
.
error
in interface Log
message
- to logLog.error(Object)
public void error(java.lang.Object message, java.lang.Throwable t)
org.apache.log4j.Priority.ERROR
.
error
in interface Log
message
- to logt
- log this causeLog.error(Object, Throwable)
public void fatal(java.lang.Object message)
org.apache.log4j.Priority.FATAL
.
fatal
in interface Log
message
- to logLog.fatal(Object)
public void fatal(java.lang.Object message, java.lang.Throwable t)
org.apache.log4j.Priority.FATAL
.
fatal
in interface Log
message
- to logt
- log this causeLog.fatal(Object, Throwable)
public org.apache.log4j.Logger getLogger()
public 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.
When using a log4j version that does not support the TRACE level, this call
will report whether DEBUG
is enabled or not.
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 |