org.apache.cactus.util.log
Class BaseLog

java.lang.Object
  |
  +--org.apache.cactus.util.log.BaseLog
All Implemented Interfaces:
Log

public class BaseLog
extends java.lang.Object
implements Log

Wrapper around the Log4j Category class. A category is usually the full name of the class in which to log (including the package name). The order of priority is as follows : ERROR > WARNING > DEBUG > INFO

Version:
$Id: BaseLog.java,v 1.5 2001/09/14 20:20:34 pier Exp $
Author:
Vincent Massol

Constructor Summary
BaseLog(java.lang.String theCategoryName)
           
 
Method Summary
 void debug(java.lang.String theMessage)
          Log a DEBUG level message.
 void debug(java.lang.String theMessage, java.lang.Throwable theThrowable)
          Log a DEBUG level message along with an exception
 void entry(java.lang.String theMessage)
          Used to log a message when entering a method.
 void error(java.lang.String theMessage)
          Log an ERROR level message.
 void error(java.lang.String theMessage, java.lang.Throwable theThrowable)
          Log an ERROR level message along with an exception
 void error(java.lang.Throwable theThrowable)
          Log an ERROR level exception only
 void exit(java.lang.String theMessage)
          Used to log a message when exiting a method.
 void info(java.lang.String theMessage)
          Log an INFO level message.
 void info(java.lang.String theMessage, java.lang.Throwable theThrowable)
          Log an INFO level message along with an exception
 boolean isDebugEnabled()
           
 void warn(java.lang.String theMessage)
          Log a WARNING level message.
 void warn(java.lang.String theMessage, java.lang.Throwable theThrowable)
          Log a WARNING level message along with an exception
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseLog

public BaseLog(java.lang.String theCategoryName)
Parameters:
theCategoryName - the category's name. Usually, it is the full name of the class being logged, including the package name
Method Detail

debug

public void debug(java.lang.String theMessage)
Log a DEBUG level message.
Specified by:
debug in interface Log
Parameters:
theMessage - the message to log

debug

public void debug(java.lang.String theMessage,
                  java.lang.Throwable theThrowable)
Log a DEBUG level message along with an exception
Specified by:
debug in interface Log
Parameters:
theMessage - the message to log
theThrowable - the exception to log

error

public void error(java.lang.String theMessage)
Log an ERROR level message.
Specified by:
error in interface Log
Parameters:
theMessage - the message to log

error

public void error(java.lang.String theMessage,
                  java.lang.Throwable theThrowable)
Log an ERROR level message along with an exception
Specified by:
error in interface Log
Parameters:
theMessage - the message to log
theThrowable - the exception to log

error

public void error(java.lang.Throwable theThrowable)
Log an ERROR level exception only
Specified by:
error in interface Log
Parameters:
theMessage - the message to log
theThrowable - the exception to log

info

public void info(java.lang.String theMessage)
Log an INFO level message.
Specified by:
info in interface Log
Parameters:
theMessage - the message to log

info

public void info(java.lang.String theMessage,
                 java.lang.Throwable theThrowable)
Log an INFO level message along with an exception
Specified by:
info in interface Log
Parameters:
theMessage - the message to log
theThrowable - the exception to log

warn

public void warn(java.lang.String theMessage)
Log a WARNING level message.
Specified by:
warn in interface Log
Parameters:
theMessage - the message to log

warn

public void warn(java.lang.String theMessage,
                 java.lang.Throwable theThrowable)
Log a WARNING level message along with an exception
Specified by:
warn in interface Log
Parameters:
theMessage - the message to log
theThrowable - the exception to log

entry

public void entry(java.lang.String theMessage)
Used to log a message when entering a method.
Specified by:
entry in interface Log
Parameters:
theMessage - the message to log

exit

public void exit(java.lang.String theMessage)
Used to log a message when exiting a method.
Specified by:
exit in interface Log
Parameters:
theMessage - the message to log

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface Log
Returns:
true if the Log4j priority level is debugging


Copyright © 2000-2001 Apache Software Foundation. All Rights Reserved.