org.apache.beehive.netui.util.logging
Class Logger

Object
  extended by Logger
All Implemented Interfaces:
Log

public class Logger
extends Object
implements Log

Logging abstraction for NetUI. This class leverages Jakarta commons-logging to create loggers for NetUI messages. Application developers can provide their own logger implementations by following the instructions for creating new Log / LogFactory instances in commons-logging.


Constructor Summary
Logger(Class clientClass)
          Deprecated.  
Logger(String clientClassName)
          Deprecated.  
 
Method Summary
 void debug(Object message)
           
 void debug(Object message, Throwable t)
           
 void error(Object message)
           
 void error(Object message, Throwable t)
           
 void fatal(Object message)
           
 void fatal(Object message, Throwable t)
           
static Logger getInstance(Class loggerClient)
          Factory method for creating NetUI Logger instances.
 void info(Object message)
           
 void info(Object message, Throwable t)
           
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isFatalEnabled()
           
 boolean isInfoEnabled()
           
 boolean isTraceEnabled()
           
 boolean isWarnEnabled()
           
 void trace(Object message)
           
 void trace(Object message, Throwable t)
           
 void warn(Object message)
           
 void warn(Object message, Throwable t)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger

public Logger(Class clientClass)
Deprecated. 

Constructor that returns a Log4J logger. This method is deprecated in favor of using commons-logging to do logger creation via the getInstance(Class) method.

Parameters:
clientClass -
See Also:
getInstance(Class)

Logger

public Logger(String clientClassName)
Deprecated. 

Constructor that returns a Log4J logger. This method is deprecated in favor of using commons-logging to do logger creation via the getInstance(Class) method.

Parameters:
clientClassName -
See Also:
getInstance(Class)
Method Detail

getInstance

public static Logger getInstance(Class loggerClient)
Factory method for creating NetUI Logger instances.

Parameters:
loggerClient - the class whose logger to create
Returns:
a Logger instance for the given class

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

debug

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

debug

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

trace

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

trace

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

info

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

info

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

warn

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

warn

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

error

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

error

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

fatal

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

fatal

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