jodd.log
Class ConsoleLog

java.lang.Object
  extended by jodd.log.Log
      extended by jodd.log.ConsoleLog

public class ConsoleLog
extends Log

Simple logger that outputs to console.


Nested Class Summary
static class ConsoleLog.Level
           
 
Field Summary
protected  ConsoleLog.Level logLevel
           
 
Fields inherited from class jodd.log.Log
name
 
Constructor Summary
ConsoleLog(java.lang.String name, ConsoleLog.Level logLevel)
           
 
Method Summary
 void debug(java.lang.String message)
           
 void error(java.lang.String message)
           
 void error(java.lang.String message, java.lang.Throwable throwable)
           
static LogFactory getFactory(ConsoleLog.Level currentLevel)
          Returns log factory that creates ConsoleLog instances.
 void info(java.lang.String message)
           
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isInfoEnabled()
           
 boolean isTraceEnabled()
           
 boolean isWarnEnabled()
           
 void trace(java.lang.String message)
           
 void warn(java.lang.String message)
           
 void warn(java.lang.String message, java.lang.Throwable throwable)
           
 
Methods inherited from class jodd.log.Log
getLogger, getLogger, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logLevel

protected ConsoleLog.Level logLevel
Constructor Detail

ConsoleLog

public ConsoleLog(java.lang.String name,
                  ConsoleLog.Level logLevel)
Method Detail

getFactory

public static LogFactory getFactory(ConsoleLog.Level currentLevel)
Returns log factory that creates ConsoleLog instances.


isTraceEnabled

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

trace

public void trace(java.lang.String message)
Specified by:
trace in class Log

isDebugEnabled

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

debug

public void debug(java.lang.String message)
Specified by:
debug in class Log

isInfoEnabled

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

info

public void info(java.lang.String message)
Specified by:
info in class Log

isWarnEnabled

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

warn

public void warn(java.lang.String message)
Specified by:
warn in class Log

warn

public void warn(java.lang.String message,
                 java.lang.Throwable throwable)
Specified by:
warn in class Log

isErrorEnabled

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

error

public void error(java.lang.String message)
Specified by:
error in class Log

error

public void error(java.lang.String message,
                  java.lang.Throwable throwable)
Specified by:
error in class Log


Copyright © 2003-2012 Jodd Team