org.apache.cactus.util.log
Interface Log

All Known Implementing Classes:
BaseLog, BaseLogDummy

public interface Log

Interface for logging implementation classes

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

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
 

Method Detail

debug

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

error

public void error(java.lang.String theMessage)
Log an ERROR level message.
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
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
Parameters:
theMessage - the message to log
theThrowable - the exception to log

info

public void info(java.lang.String theMessage)
Log an INFO level message.
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
Parameters:
theMessage - the message to log
theThrowable - the exception to log

warn

public void warn(java.lang.String theMessage)
Log a WARNING level message.
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
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.
Parameters:
theMessage - the message to log

exit

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

isDebugEnabled

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


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