org.eclipse.higgins.cardstore.logging.impl
Class LoggerConsoleImpl

java.lang.Object
  extended byorg.eclipse.higgins.cardstore.logging.impl.LoggerConsoleImpl
All Implemented Interfaces:
Log

public class LoggerConsoleImpl
extends Object
implements Log

This class should only be used for testing purposes.

This is a simple logger that will output to System.out and System.err.

Author:
pwardrop

Field Summary
static String copyright
           
 
Constructor Summary
LoggerConsoleImpl(Class klass)
           
 
Method Summary
 void debug(Object arg0)
           
 void debug(Object arg0, Throwable arg1)
           
 void enterMethod(String method)
           
 void enterMethod(String method, Object[] params)
           
 void error(Object arg0)
           
 void error(Object arg0, Throwable arg1)
           
 void exitMethod(String method)
           
 void exitMethod(String method, Object result)
           
 void fatal(Object arg0)
           
 void fatal(Object arg0, Throwable arg1)
           
 void info(Object arg0)
           
 void info(Object arg0, Throwable arg1)
           
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isFatalEnabled()
           
 boolean isInfoEnabled()
           
 boolean isTraceEnabled()
           
 boolean isWarnEnabled()
           
 void throwing(String method, Throwable thrown)
           
 void trace(String method, Object arg0)
           
 void trace(String method, Object arg0, Throwable thrown)
           
 void warn(Object arg0)
           
 void warn(Object arg0, Throwable arg1)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static String copyright
Constructor Detail

LoggerConsoleImpl

public LoggerConsoleImpl(Class klass)
Method Detail

enterMethod

public void enterMethod(String method,
                        Object[] params)
Specified by:
enterMethod in interface Log

enterMethod

public void enterMethod(String method)
Specified by:
enterMethod in interface Log

exitMethod

public void exitMethod(String method,
                       Object result)
Specified by:
exitMethod in interface Log

exitMethod

public void exitMethod(String method)
Specified by:
exitMethod in interface Log

throwing

public void throwing(String method,
                     Throwable thrown)
Specified by:
throwing in interface Log

debug

public void debug(Object arg0)
Specified by:
debug in interface Log

debug

public void debug(Object arg0,
                  Throwable arg1)
Specified by:
debug in interface Log

error

public void error(Object arg0)
Specified by:
error in interface Log

error

public void error(Object arg0,
                  Throwable arg1)
Specified by:
error in interface Log

fatal

public void fatal(Object arg0)
Specified by:
fatal in interface Log

fatal

public void fatal(Object arg0,
                  Throwable arg1)
Specified by:
fatal in interface Log

info

public void info(Object arg0)
Specified by:
info in interface Log

info

public void info(Object arg0,
                 Throwable arg1)
Specified by:
info in interface Log

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface Log

isErrorEnabled

public boolean isErrorEnabled()
Specified by:
isErrorEnabled in interface Log

isFatalEnabled

public boolean isFatalEnabled()
Specified by:
isFatalEnabled in interface Log

isInfoEnabled

public boolean isInfoEnabled()
Specified by:
isInfoEnabled in interface Log

isTraceEnabled

public boolean isTraceEnabled()
Specified by:
isTraceEnabled in interface Log

isWarnEnabled

public boolean isWarnEnabled()
Specified by:
isWarnEnabled in interface Log

trace

public void trace(String method,
                  Object arg0)
Specified by:
trace in interface Log

trace

public void trace(String method,
                  Object arg0,
                  Throwable thrown)
Specified by:
trace in interface Log

warn

public void warn(Object arg0)
Specified by:
warn in interface Log

warn

public void warn(Object arg0,
                 Throwable arg1)
Specified by:
warn in interface Log