ch.panter.li.bi.util
Interface Log

All Known Implementing Classes:
SysoutLog

public interface Log

A simple interface for Loggers. Adapted version of Apache JK commons logging Log interface. User: seb Date: Feb 27, 2007 Time: 1:04:23 PM


Method Summary
 void debug(Object message)
           Log a message with debug log level.
 void debug(Object message, Throwable t)
           Log an error with debug log level.
 void error(Object message)
           Log a message with error log level.
 void error(Object message, Throwable t)
           Log an error with error log level.
 void fatal(Object message)
           Log a message with fatal log level.
 void fatal(Object message, Throwable t)
           Log an error with fatal log level.
 void info(Object message)
           Log a message with info log level.
 void info(Object message, Throwable t)
           Log an error with info log level.
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isFatalEnabled()
           
 boolean isInfoEnabled()
           
 boolean isTraceEnabled()
           
 boolean isWarnEnabled()
           
 void trace(Object message)
           Log a message with trace log level.
 void trace(Object message, Throwable t)
           Log an error with trace log level.
 void warn(Object message)
           Log a message with warn log level.
 void warn(Object message, Throwable t)
           Log an error with warn log level.
 

Method Detail

isDebugEnabled

boolean isDebugEnabled()
Returns:
true if debug is enabled in the underlying logger.

isErrorEnabled

boolean isErrorEnabled()
Returns:
true if error is enabled in the underlying logger.

isFatalEnabled

boolean isFatalEnabled()
Returns:
true if fatal is enabled in the underlying logger.

isInfoEnabled

boolean isInfoEnabled()
Returns:
true if info is enabled in the underlying logger.

isTraceEnabled

boolean isTraceEnabled()
Returns:
true if trace is enabled in the underlying logger.

isWarnEnabled

boolean isWarnEnabled()
Returns:
true if warn is enabled in the underlying logger.

trace

void trace(Object message)

Log a message with trace log level.

Parameters:
message - log this message

trace

void trace(Object message,
           Throwable t)

Log an error with trace log level.

Parameters:
message - log this message
t - log this cause

debug

void debug(Object message)

Log a message with debug log level.

Parameters:
message - log this message

debug

void debug(Object message,
           Throwable t)

Log an error with debug log level.

Parameters:
message - log this message
t - log this cause

info

void info(Object message)

Log a message with info log level.

Parameters:
message - log this message

info

void info(Object message,
          Throwable t)

Log an error with info log level.

Parameters:
message - log this message
t - log this cause

warn

void warn(Object message)

Log a message with warn log level.

Parameters:
message - log this message

warn

void warn(Object message,
          Throwable t)

Log an error with warn log level.

Parameters:
message - log this message
t - log this cause

error

void error(Object message)

Log a message with error log level.

Parameters:
message - log this message

error

void error(Object message,
           Throwable t)

Log an error with error log level.

Parameters:
message - log this message
t - log this cause

fatal

void fatal(Object message)

Log a message with fatal log level.

Parameters:
message - log this message

fatal

void fatal(Object message,
           Throwable t)

Log an error with fatal log level.

Parameters:
message - log this message
t - log this cause


Copyright 2007-2007 SourceForge. All Rights Reserved.