ch.panter.li.bi.util
Class SysoutLog

java.lang.Object
  extended by ch.panter.li.bi.util.SysoutLog
All Implemented Interfaces:
Log

public class SysoutLog
extends Object
implements Log

Simple Log implementation writing to STDOUT. Messages with level ERROR and FATAL are written to STDERR. User: seb Date: Feb 27, 2007 Time: 1:11:21 PM


Constructor Summary
SysoutLog(String tag)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SysoutLog

public SysoutLog(String tag)
Method Detail

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface Log
Returns:
true if debug is enabled in the underlying logger.

isErrorEnabled

public boolean isErrorEnabled()
Specified by:
isErrorEnabled in interface Log
Returns:
true if error is enabled in the underlying logger.

isFatalEnabled

public boolean isFatalEnabled()
Specified by:
isFatalEnabled in interface Log
Returns:
true if fatal is enabled in the underlying logger.

isInfoEnabled

public boolean isInfoEnabled()
Specified by:
isInfoEnabled in interface Log
Returns:
true if info is enabled in the underlying logger.

isTraceEnabled

public boolean isTraceEnabled()
Specified by:
isTraceEnabled in interface Log
Returns:
true if trace is enabled in the underlying logger.

isWarnEnabled

public boolean isWarnEnabled()
Specified by:
isWarnEnabled in interface Log
Returns:
true if warn is enabled in the underlying logger.

trace

public void trace(Object message)

Log a message with trace log level.

Specified by:
trace in interface Log
Parameters:
message - log this message

trace

public void trace(Object message,
                  Throwable t)

Log an error with trace log level.

Specified by:
trace in interface Log
Parameters:
message - log this message
t - log this cause

debug

public void debug(Object message)

Log a message with debug log level.

Specified by:
debug in interface Log
Parameters:
message - log this message

debug

public void debug(Object message,
                  Throwable t)

Log an error with debug log level.

Specified by:
debug in interface Log
Parameters:
message - log this message
t - log this cause

info

public void info(Object message)

Log a message with info log level.

Specified by:
info in interface Log
Parameters:
message - log this message

info

public void info(Object message,
                 Throwable t)

Log an error with info log level.

Specified by:
info in interface Log
Parameters:
message - log this message
t - log this cause

warn

public void warn(Object message)

Log a message with warn log level.

Specified by:
warn in interface Log
Parameters:
message - log this message

warn

public void warn(Object message,
                 Throwable t)

Log an error with warn log level.

Specified by:
warn in interface Log
Parameters:
message - log this message
t - log this cause

error

public void error(Object message)

Log a message with error log level.

Specified by:
error in interface Log
Parameters:
message - log this message

error

public void error(Object message,
                  Throwable t)

Log an error with error log level.

Specified by:
error in interface Log
Parameters:
message - log this message
t - log this cause

fatal

public void fatal(Object message)

Log a message with fatal log level.

Specified by:
fatal in interface Log
Parameters:
message - log this message

fatal

public void fatal(Object message,
                  Throwable t)

Log an error with fatal log level.

Specified by:
fatal in interface Log
Parameters:
message - log this message
t - log this cause


Copyright 2007-2007 SourceForge. All Rights Reserved.