org.apache.commons.logging.impl
Log4JLogger
instead.public final class Log4JCategoryLog extends java.lang.Object implements Log
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.
Modifier and Type | Field and Description |
---|---|
private org.apache.log4j.Category |
category
Deprecated.
Log to this category
|
private static java.lang.String |
FQCN
Deprecated.
The fully qualified name of the Log4JCategoryLog class.
|
Constructor and Description |
---|
Log4JCategoryLog()
Deprecated.
|
Log4JCategoryLog(org.apache.log4j.Category category)
Deprecated.
For use with a log4j factory.
|
Log4JCategoryLog(java.lang.String name)
Deprecated.
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.Object message)
Deprecated.
Log a message to the Log4j Category with
DEBUG priority. |
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Deprecated.
Log an error to the Log4j Category with
DEBUG priority. |
void |
error(java.lang.Object message)
Deprecated.
Log a message to the Log4j Category with
ERROR priority. |
void |
error(java.lang.Object message,
java.lang.Throwable t)
Deprecated.
Log an error to the Log4j Category with
ERROR priority. |
void |
fatal(java.lang.Object message)
Deprecated.
Log a message to the Log4j Category with
FATAL priority. |
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Deprecated.
Log an error to the Log4j Category with
FATAL priority. |
org.apache.log4j.Category |
getCategory()
Deprecated.
Return the native Category instance we are using.
|
void |
info(java.lang.Object message)
Deprecated.
Log a message to the Log4j Category with
INFO priority. |
void |
info(java.lang.Object message,
java.lang.Throwable t)
Deprecated.
Log an error to the Log4j Category with
INFO priority. |
boolean |
isDebugEnabled()
Deprecated.
Check whether the Log4j Category used is enabled for
DEBUG priority. |
boolean |
isErrorEnabled()
Deprecated.
Check whether the Log4j Category used is enabled for
ERROR priority. |
boolean |
isFatalEnabled()
Deprecated.
Check whether the Log4j Category used is enabled for
FATAL priority. |
boolean |
isInfoEnabled()
Deprecated.
Check whether the Log4j Category used is enabled for
INFO priority. |
boolean |
isTraceEnabled()
Deprecated.
Check whether the Log4j Category used is enabled for
TRACE priority. |
boolean |
isWarnEnabled()
Deprecated.
Check whether the Log4j Category used is enabled for
WARN priority. |
void |
trace(java.lang.Object message)
Deprecated.
Log a message to the Log4j Category with
TRACE priority. |
void |
trace(java.lang.Object message,
java.lang.Throwable t)
Deprecated.
Log an error to the Log4j Category with
TRACE priority. |
void |
warn(java.lang.Object message)
Deprecated.
Log a message to the Log4j Category with
WARN priority. |
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Deprecated.
Log an error to the Log4j Category with
WARN priority. |
private static final java.lang.String FQCN
private org.apache.log4j.Category category
public Log4JCategoryLog()
public Log4JCategoryLog(java.lang.String name)
public Log4JCategoryLog(org.apache.log4j.Category category)
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.public void debug(java.lang.Object message, java.lang.Throwable t)
DEBUG
priority.public void info(java.lang.Object message)
INFO
priority.public void info(java.lang.Object message, java.lang.Throwable t)
INFO
priority.public void warn(java.lang.Object message)
WARN
priority.public void warn(java.lang.Object message, java.lang.Throwable t)
WARN
priority.public void error(java.lang.Object message)
ERROR
priority.public void error(java.lang.Object message, java.lang.Throwable t)
ERROR
priority.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.Category getCategory()
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.
For Log4J, this returns the value of isDebugEnabled()
isTraceEnabled
in interface Log
public boolean isWarnEnabled()
WARN
priority.isWarnEnabled
in interface Log
Copyright 2002-2004 The Apache Software Foundation.