org.apache.commons.logging.impl
public class Log4JLogger extends Object implements Log, Serializable
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(String name)
Base constructor. | |
Log4JLogger(Logger logger) For use with a log4j factory. |
Method Summary | |
---|---|
void | debug(Object message)
Logs a message with org.apache.log4j.Priority.DEBUG .
|
void | debug(Object message, Throwable t)
Logs a message with org.apache.log4j.Priority.DEBUG .
|
void | error(Object message)
Logs a message with org.apache.log4j.Priority.ERROR .
|
void | error(Object message, Throwable t)
Logs a message with org.apache.log4j.Priority.ERROR .
|
void | fatal(Object message)
Logs a message with org.apache.log4j.Priority.FATAL .
|
void | fatal(Object message, Throwable t)
Logs a message with org.apache.log4j.Priority.FATAL .
|
Logger | getLogger()
Return the native Logger instance we are using. |
void | info(Object message)
Logs a message with org.apache.log4j.Priority.INFO .
|
void | info(Object message, 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(Object message)
Logs a message with org.apache.log4j.Priority.TRACE .
|
void | trace(Object message, Throwable t)
Logs a message with org.apache.log4j.Priority.TRACE .
|
void | warn(Object message)
Logs a message with org.apache.log4j.Priority.WARN .
|
void | warn(Object message, Throwable t)
Logs a message with org.apache.log4j.Priority.WARN .
|
org.apache.log4j.Priority.DEBUG
.
Parameters: message to log t log this cause
See Also: Log
org.apache.log4j.Priority.ERROR
.
Parameters: message to log t log this cause
See Also: Log
org.apache.log4j.Priority.FATAL
.
Parameters: message to log t log this cause
See Also: Log
org.apache.log4j.Priority.INFO
.
Parameters: message to log t log this cause
See Also: Log
DEBUG
priority.ERROR
priority.FATAL
priority.INFO
priority.TRACE
priority.
When using a log4j version that does not support the TRACE level, this call
will report whether DEBUG
is enabled or not.WARN
priority.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.
Parameters: message to log
See Also: trace
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.
Parameters: message to log t log this cause
See Also: Log
org.apache.log4j.Priority.WARN
.
Parameters: message to log t log this cause
See Also: Log