org.apache.geronimo.kernel.log
Class GeronimoLog

java.lang.Object
  extended by org.apache.geronimo.kernel.log.GeronimoLog
All Implemented Interfaces:
Log

public final class GeronimoLog
extends Object
implements Log

This log wrapper caches the trace, debug and info enabled flags. The flags are updated by a single timer task for all logs.


Constructor Summary
GeronimoLog(String name, Log log)
           
 
Method Summary
 void debug(Object message)
           
 void debug(Object message, Throwable throwable)
           
 void error(Object message)
           
 void error(Object message, Throwable throwable)
           
 void fatal(Object message)
           
 void fatal(Object message, Throwable throwable)
           
 Log getLog()
           
 String getName()
           
 void info(Object message)
           
 void info(Object message, Throwable throwable)
           
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isFatalEnabled()
           
 boolean isInfoEnabled()
           
 boolean isTraceEnabled()
           
 boolean isWarnEnabled()
           
 void setLog(Log log)
           
 void trace(Object message)
           
 void trace(Object message, Throwable throwable)
           
 void warn(Object message)
           
 void warn(Object message, Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeronimoLog

public GeronimoLog(String name,
                   Log log)
Method Detail

getName

public String getName()

getLog

public Log getLog()

setLog

public void setLog(Log log)

isTraceEnabled

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

trace

public void trace(Object message)
Specified by:
trace in interface Log

trace

public void trace(Object message,
                  Throwable throwable)
Specified by:
trace in interface Log

isDebugEnabled

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

debug

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

debug

public void debug(Object message,
                  Throwable throwable)
Specified by:
debug in interface Log

isInfoEnabled

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

info

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

info

public void info(Object message,
                 Throwable throwable)
Specified by:
info in interface Log

isWarnEnabled

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

warn

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

warn

public void warn(Object message,
                 Throwable throwable)
Specified by:
warn in interface Log

isErrorEnabled

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

error

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

error

public void error(Object message,
                  Throwable throwable)
Specified by:
error in interface Log

isFatalEnabled

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

fatal

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

fatal

public void fatal(Object message,
                  Throwable throwable)
Specified by:
fatal in interface Log


Copyright © 2006 Apache Software Foundation. All Rights Reserved.