org.apache.commons.logging.impl
Class Log4JCategoryLog

java.lang.Object
  |
  +--org.apache.commons.logging.impl.Log4JCategoryLog
All Implemented Interfaces:
Log

Deprecated. Use 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.

Version:
$Id: Log4JCategoryLog.html 853148 2013-03-05 18:53:06Z tn $
Author:
Scott Sanders, Rod Waldhoff, Robert Burrell Donkin

Constructor Summary
Log4JCategoryLog()
          Deprecated.  
Log4JCategoryLog(org.apache.log4j.Category category)
          Deprecated. For use with a log4j factory.
Log4JCategoryLog(java.lang.String name)
          Deprecated. Base constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4JCategoryLog

public Log4JCategoryLog()
Deprecated. 

Log4JCategoryLog

public Log4JCategoryLog(java.lang.String name)
Deprecated. 
Base constructor.


Log4JCategoryLog

public Log4JCategoryLog(org.apache.log4j.Category category)
Deprecated. 
For use with a log4j factory.

Method Detail

trace

public void trace(java.lang.Object message)
Deprecated. 
Log a message to the Log4j Category with TRACE priority. Currently logs to DEBUG level in Log4J.

Specified by:
trace in interface Log
Parameters:
message - log this message

trace

public void trace(java.lang.Object message,
                  java.lang.Throwable t)
Deprecated. 
Log an error to the Log4j Category with TRACE priority. Currently logs to DEBUG level in Log4J.

Specified by:
trace in interface Log
Parameters:
message - log this message
t - log this cause

debug

public void debug(java.lang.Object message)
Deprecated. 
Log a message to the Log4j Category with DEBUG priority.

Specified by:
debug in interface Log
Parameters:
message - log this message

debug

public void debug(java.lang.Object message,
                  java.lang.Throwable t)
Deprecated. 
Log an error to the Log4j Category with DEBUG priority.

Specified by:
debug in interface Log
Parameters:
message - log this message
t - log this cause

info

public void info(java.lang.Object message)
Deprecated. 
Log a message to the Log4j Category with INFO priority.

Specified by:
info in interface Log
Parameters:
message - log this message

info

public void info(java.lang.Object message,
                 java.lang.Throwable t)
Deprecated. 
Log an error to the Log4j Category with INFO priority.

Specified by:
info in interface Log
Parameters:
message - log this message
t - log this cause

warn

public void warn(java.lang.Object message)
Deprecated. 
Log a message to the Log4j Category with WARN priority.

Specified by:
warn in interface Log
Parameters:
message - log this message

warn

public void warn(java.lang.Object message,
                 java.lang.Throwable t)
Deprecated. 
Log an error to the Log4j Category with WARN priority.

Specified by:
warn in interface Log
Parameters:
message - log this message
t - log this cause

error

public void error(java.lang.Object message)
Deprecated. 
Log a message to the Log4j Category with ERROR priority.

Specified by:
error in interface Log
Parameters:
message - log this message

error

public void error(java.lang.Object message,
                  java.lang.Throwable t)
Deprecated. 
Log an error to the Log4j Category with ERROR priority.

Specified by:
error in interface Log
Parameters:
message - log this message
t - log this cause

fatal

public void fatal(java.lang.Object message)
Deprecated. 
Log a message to the Log4j Category with FATAL priority.

Specified by:
fatal in interface Log
Parameters:
message - log this message

fatal

public void fatal(java.lang.Object message,
                  java.lang.Throwable t)
Deprecated. 
Log an error to the Log4j Category with FATAL priority.

Specified by:
fatal in interface Log
Parameters:
message - log this message
t - log this cause

getCategory

public org.apache.log4j.Category getCategory()
Deprecated. 
Return the native Category instance we are using.


isDebugEnabled

public boolean isDebugEnabled()
Deprecated. 
Check whether the Log4j Category used is enabled for DEBUG priority.

Specified by:
isDebugEnabled in interface Log

isErrorEnabled

public boolean isErrorEnabled()
Deprecated. 
Check whether the Log4j Category used is enabled for ERROR priority.

Specified by:
isErrorEnabled in interface Log

isFatalEnabled

public boolean isFatalEnabled()
Deprecated. 
Check whether the Log4j Category used is enabled for FATAL priority.

Specified by:
isFatalEnabled in interface Log

isInfoEnabled

public boolean isInfoEnabled()
Deprecated. 
Check whether the Log4j Category used is enabled for INFO priority.

Specified by:
isInfoEnabled in interface Log

isTraceEnabled

public boolean isTraceEnabled()
Deprecated. 
Check whether the Log4j Category used is enabled for TRACE priority. For Log4J, this returns the value of isDebugEnabled()

Specified by:
isTraceEnabled in interface Log

isWarnEnabled

public boolean isWarnEnabled()
Deprecated. 
Check whether the Log4j Category used is enabled for WARN priority.

Specified by:
isWarnEnabled in interface Log


Copyright © 2001-2004 The Apache Software Foundation. All Rights Reserved.