org.apache.cactus.util.log
class BaseLogDummy

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

public class BaseLogDummy
extends java.lang.Object
implements Log

Dummy class that logs nothing.

Version:
$Id: BaseLogDummy.java,v 1.2 2002/03/13 20:40:33 vmassol Exp $
Author:
Vincent Massol

Constructor Summary
BaseLogDummy()
          Dummy class that logs nothing.
 
Method Summary
 void debug(String theMessage)
          Log a DEBUG level message.
 void debug(String theMessage, Throwable theThrowable)
          Log a DEBUG level message along with an exception
 void entry(String theMessage)
          Used to log a message when entering a method.
 void error(String theMessage)
          Log an ERROR level message.
 void error(String theMessage, Throwable theThrowable)
          Log an ERROR level message along with an exception
 void error(Throwable theThrowable)
          Log an ERROR level exception only
 void exit(String theMessage)
          Used to log a message when exiting a method.
 void info(String theMessage)
          Log an INFO level message.
 void info(String theMessage, Throwable theThrowable)
          Log an INFO level message along with an exception
 boolean isDebugEnabled()
           
 void warn(String theMessage)
          Log a WARNING level message.
 void warn(String theMessage, 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

BaseLogDummy

public BaseLogDummy()
Dummy class that logs nothing.
Method Detail

debug

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

debug

public void debug(String theMessage,
                  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

entry

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

error

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

error

public void error(String theMessage,
                  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(Throwable theThrowable)
Log an ERROR level exception only
Specified by:
error in interface Log
Parameters:
theThrowable - the exception to log

exit

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

info

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

info

public void info(String theMessage,
                 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

isDebugEnabled

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

warn

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

warn

public void warn(String theMessage,
                 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


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