org.apache.commons.logging.impl
public final class Log4JCategoryLog extends Object implements Log
Deprecated: Use {@link Log4JLogger} instead.
Implementation of {@link 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.
Version: $Id: Log4JCategoryLog.java,v 1.15 2004/02/28 21:46:45 craigmcc Exp $
Field Summary | |
---|---|
Category | category Log to this category |
static String | FQCN The fully qualified name of the Log4JCategoryLog class. |
Constructor Summary | |
---|---|
Log4JCategoryLog() | |
Log4JCategoryLog(String name)
Base constructor. | |
Log4JCategoryLog(Category category) For use with a log4j factory. |
Method Summary | |
---|---|
void | debug(Object message)
Log a message to the Log4j Category with DEBUG priority. |
void | debug(Object message, Throwable t)
Log an error to the Log4j Category with DEBUG priority. |
void | error(Object message)
Log a message to the Log4j Category with ERROR priority. |
void | error(Object message, Throwable t)
Log an error to the Log4j Category with ERROR priority. |
void | fatal(Object message)
Log a message to the Log4j Category with FATAL priority. |
void | fatal(Object message, Throwable t)
Log an error to the Log4j Category with FATAL priority. |
Category | getCategory()
Return the native Category instance we are using. |
void | info(Object message)
Log a message to the Log4j Category with INFO priority. |
void | info(Object message, 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(Object message)
Log a message to the Log4j Category with TRACE priority.
|
void | trace(Object message, Throwable t)
Log an error to the Log4j Category with TRACE priority.
|
void | warn(Object message)
Log a message to the Log4j Category with WARN priority. |
void | warn(Object message, Throwable t)
Log an error to the Log4j Category with WARN priority. |
DEBUG
priority.DEBUG
priority.ERROR
priority.ERROR
priority.FATAL
priority.FATAL
priority.INFO
priority.INFO
priority.DEBUG
priority.ERROR
priority.FATAL
priority.INFO
priority.TRACE
priority.
For Log4J, this returns the value of isDebugEnabled()
WARN
priority.TRACE
priority.
Currently logs to DEBUG
level in Log4J.TRACE
priority.
Currently logs to DEBUG
level in Log4J.WARN
priority.WARN
priority.