org.apache.commons.logging.impl
Class Log4JCategoryLog
java.lang.Object
org.apache.commons.logging.impl.Log4JCategoryLog
- Log
public final class Log4JCategoryLog
extends java.lang.Object
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.
$Id: Log4JCategoryLog.java,v 1.15 2004/02/28 21:46:45 craigmcc Exp $private static String | FQCN - The fully qualified name of the Log4JCategoryLog class.
|
private Category | category - Log to this category
|
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.
|
FQCN
private static final String FQCN
The fully qualified name of the Log4JCategoryLog class.
category
private Category category
Log to this category
Log4JCategoryLog
public Log4JCategoryLog()
Log4JCategoryLog
public Log4JCategoryLog(Category category)
For use with a log4j factory.
Log4JCategoryLog
public Log4JCategoryLog(String name)
Base constructor.
debug
public void debug(Object message)
Log a message to the Log4j Category with DEBUG
priority.
- debug in interface Log
debug
public void debug(Object message,
Throwable t)
Log an error to the Log4j Category with DEBUG
priority.
- debug in interface Log
error
public void error(Object message)
Log a message to the Log4j Category with ERROR
priority.
- error in interface Log
error
public void error(Object message,
Throwable t)
Log an error to the Log4j Category with ERROR
priority.
- error in interface Log
fatal
public void fatal(Object message)
Log a message to the Log4j Category with FATAL
priority.
- fatal in interface Log
fatal
public void fatal(Object message,
Throwable t)
Log an error to the Log4j Category with FATAL
priority.
- fatal in interface Log
getCategory
public Category getCategory()
Return the native Category instance we are using.
info
public void info(Object message)
Log a message to the Log4j Category with INFO
priority.
- info in interface Log
info
public void info(Object message,
Throwable t)
Log an error to the Log4j Category with INFO
priority.
- info in interface Log
isDebugEnabled
public boolean isDebugEnabled()
Check whether the Log4j Category used is enabled for DEBUG
priority.
- isDebugEnabled in interface Log
isErrorEnabled
public boolean isErrorEnabled()
Check whether the Log4j Category used is enabled for ERROR
priority.
- isErrorEnabled in interface Log
isFatalEnabled
public boolean isFatalEnabled()
Check whether the Log4j Category used is enabled for FATAL
priority.
- isFatalEnabled in interface Log
isInfoEnabled
public boolean isInfoEnabled()
Check whether the Log4j Category used is enabled for INFO
priority.
- isInfoEnabled in interface Log
isTraceEnabled
public boolean isTraceEnabled()
Check whether the Log4j Category used is enabled for TRACE
priority.
For Log4J, this returns the value of isDebugEnabled()
- isTraceEnabled in interface Log
isWarnEnabled
public boolean isWarnEnabled()
Check whether the Log4j Category used is enabled for WARN
priority.
- isWarnEnabled in interface Log
trace
public void trace(Object message)
Log a message to the Log4j Category with TRACE
priority.
Currently logs to DEBUG
level in Log4J.
- trace in interface Log
trace
public void trace(Object message,
Throwable t)
Log an error to the Log4j Category with TRACE
priority.
Currently logs to DEBUG
level in Log4J.
- trace in interface Log
warn
public void warn(Object message)
Log a message to the Log4j Category with WARN
priority.
- warn in interface Log
warn
public void warn(Object message,
Throwable t)
Log an error to the Log4j Category with WARN
priority.
- warn in interface Log
Copyright 2002-2004 The Apache Software Foundation.