net.ggtools.grand.log
Class SimpleLog

java.lang.Object
  extended by net.ggtools.grand.log.SimpleLog
All Implemented Interfaces:
org.apache.commons.logging.Log
Direct Known Subclasses:
AntLog

 class SimpleLog
extends java.lang.Object
implements org.apache.commons.logging.Log

Simple log class logging to stdout.

Author:
Christophe Labouisse

Field Summary
protected static int LEVEL_ALL
           
protected static int LEVEL_DEBUG
           
protected static int LEVEL_ERROR
           
protected static int LEVEL_FATAL
           
protected static int LEVEL_INFO
           
protected static java.lang.String[] LEVEL_NAMES
           
protected static int LEVEL_NONE
           
protected static int LEVEL_TRACE
           
protected static int LEVEL_WARN
           
 
Constructor Summary
SimpleLog()
          Package only instanciation.
 
Method Summary
 void debug(java.lang.Object message)
           
 void debug(java.lang.Object message, java.lang.Throwable t)
           
 void error(java.lang.Object message)
           
 void error(java.lang.Object message, java.lang.Throwable t)
           
 void fatal(java.lang.Object message)
           
 void fatal(java.lang.Object message, java.lang.Throwable t)
           
 void info(java.lang.Object message)
           
 void info(java.lang.Object message, java.lang.Throwable t)
           
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isFatalEnabled()
           
 boolean isInfoEnabled()
           
 boolean isTraceEnabled()
           
 boolean isWarnEnabled()
           
protected  void log(java.lang.Object message, int level)
           
protected  void log(java.lang.Object message, java.lang.Throwable t, int level)
           
 void trace(java.lang.Object message)
           
 void trace(java.lang.Object message, java.lang.Throwable t)
           
 void warn(java.lang.Object message)
           
 void warn(java.lang.Object message, java.lang.Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEVEL_NONE

protected static final int LEVEL_NONE
See Also:
Constant Field Values

LEVEL_FATAL

protected static final int LEVEL_FATAL
See Also:
Constant Field Values

LEVEL_ERROR

protected static final int LEVEL_ERROR
See Also:
Constant Field Values

LEVEL_WARN

protected static final int LEVEL_WARN
See Also:
Constant Field Values

LEVEL_INFO

protected static final int LEVEL_INFO
See Also:
Constant Field Values

LEVEL_DEBUG

protected static final int LEVEL_DEBUG
See Also:
Constant Field Values

LEVEL_TRACE

protected static final int LEVEL_TRACE
See Also:
Constant Field Values

LEVEL_ALL

protected static final int LEVEL_ALL
See Also:
Constant Field Values

LEVEL_NAMES

protected static final java.lang.String[] LEVEL_NAMES
Constructor Detail

SimpleLog

SimpleLog()
Package only instanciation.

Method Detail

debug

public void debug(java.lang.Object message)
Specified by:
debug in interface org.apache.commons.logging.Log

debug

public void debug(java.lang.Object message,
                  java.lang.Throwable t)
Specified by:
debug in interface org.apache.commons.logging.Log

error

public void error(java.lang.Object message)
Specified by:
error in interface org.apache.commons.logging.Log

error

public void error(java.lang.Object message,
                  java.lang.Throwable t)
Specified by:
error in interface org.apache.commons.logging.Log

fatal

public void fatal(java.lang.Object message)
Specified by:
fatal in interface org.apache.commons.logging.Log

fatal

public void fatal(java.lang.Object message,
                  java.lang.Throwable t)
Specified by:
fatal in interface org.apache.commons.logging.Log

info

public void info(java.lang.Object message)
Specified by:
info in interface org.apache.commons.logging.Log

info

public void info(java.lang.Object message,
                 java.lang.Throwable t)
Specified by:
info in interface org.apache.commons.logging.Log

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface org.apache.commons.logging.Log

isErrorEnabled

public boolean isErrorEnabled()
Specified by:
isErrorEnabled in interface org.apache.commons.logging.Log

isFatalEnabled

public boolean isFatalEnabled()
Specified by:
isFatalEnabled in interface org.apache.commons.logging.Log

isInfoEnabled

public boolean isInfoEnabled()
Specified by:
isInfoEnabled in interface org.apache.commons.logging.Log

isTraceEnabled

public boolean isTraceEnabled()
Specified by:
isTraceEnabled in interface org.apache.commons.logging.Log

isWarnEnabled

public boolean isWarnEnabled()
Specified by:
isWarnEnabled in interface org.apache.commons.logging.Log

trace

public void trace(java.lang.Object message)
Specified by:
trace in interface org.apache.commons.logging.Log

trace

public void trace(java.lang.Object message,
                  java.lang.Throwable t)
Specified by:
trace in interface org.apache.commons.logging.Log

warn

public void warn(java.lang.Object message)
Specified by:
warn in interface org.apache.commons.logging.Log

warn

public void warn(java.lang.Object message,
                 java.lang.Throwable t)
Specified by:
warn in interface org.apache.commons.logging.Log

log

protected void log(java.lang.Object message,
                   int level)

log

protected void log(java.lang.Object message,
                   java.lang.Throwable t,
                   int level)


Copyright © 2004-2005 ggTools. All Rights Reserved.