org.apache.cactus.util.log
Interface Log

All Known Implementing Classes:
BaseLogDummy, BaseLog

public interface Log

Interface for logging implementation classes

Version:
$Id: Log.java,v 1.1 2002/03/01 00:43:47 vmassol Exp $
Author:
Vincent Massol

Constructor Summary
Log()
          Interface for logging implementation classes
 
Method Summary
abstract  void debug(String theMessage)
          Log a DEBUG level message.
abstract  void debug(String theMessage, Throwable theThrowable)
          Log a DEBUG level message along with an exception
abstract  void entry(String theMessage)
          Used to log a message when entering a method.
abstract  void error(String theMessage)
          Log an ERROR level message.
abstract  void error(String theMessage, Throwable theThrowable)
          Log an ERROR level message along with an exception
abstract  void error(Throwable theThrowable)
          Log an ERROR level exception only
abstract  void exit(String theMessage)
          Used to log a message when exiting a method.
abstract  void info(String theMessage)
          Log an INFO level message.
abstract  void info(String theMessage, Throwable theThrowable)
          Log an INFO level message along with an exception
abstract  boolean isDebugEnabled()
           
abstract  void warn(String theMessage)
          Log a WARNING level message.
abstract  void warn(String theMessage, Throwable theThrowable)
          Log a WARNING level message along with an exception
 

Constructor Detail

Log

public Log()
Interface for logging implementation classes
Method Detail

debug

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

debug

public void debug(String theMessage,
                  Throwable theThrowable)
Log a DEBUG level message along with an exception
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.
Parameters:
theMessage - the message to log

error

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

error

public void error(String theMessage,
                  Throwable theThrowable)
Log an ERROR level message along with an exception
Parameters:
theMessage - the message to log
theThrowable - the exception to log

error

public void error(Throwable theThrowable)
Log an ERROR level exception only
Parameters:
theThrowable - the exception to log

exit

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

info

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

info

public void info(String theMessage,
                 Throwable theThrowable)
Log an INFO level message along with an exception
Parameters:
theMessage - the message to log
theThrowable - the exception to log

isDebugEnabled

public boolean isDebugEnabled()
Returns:
true if the Log4j priority level is debugging

warn

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

warn

public void warn(String theMessage,
                 Throwable theThrowable)
Log a WARNING level message along with an exception
Parameters:
theMessage - the message to log
theThrowable - the exception to log


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