org.apache.pluto.portalImpl.services.log
Class Log

java.lang.Object
  extended by org.apache.pluto.portalImpl.services.log.Log

public class Log
extends java.lang.Object

This is the static accessor for the Logger. All log messages logged using this classes static log methods log to the org.apache.pluto.portalImpl category.

See Also:
org.apache.pluto.services.log.Logger

Field Summary
private static Logger log
           
 
Constructor Summary
Log()
           
 
Method Summary
static void debug(java.lang.String aMessage)
           
static void debug(java.lang.String aMessage, java.lang.Throwable aThrowable)
           
static void error(java.lang.String aMessage)
           
static void error(java.lang.String aMessage, java.lang.Throwable aThrowable)
           
static void error(java.lang.Throwable aThrowable)
           
static LogService getService()
          Returns the LogService which has been registered with the ServiceManager.
static void info(java.lang.String aMessage)
           
static boolean isDebugEnabled()
           
static boolean isErrorEnabled()
           
static boolean isInfoEnabled()
           
static boolean isWarnEnabled()
           
static void warn(java.lang.String aMessage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static Logger log
Constructor Detail

Log

public Log()
Method Detail

isDebugEnabled

public static boolean isDebugEnabled()

isInfoEnabled

public static boolean isInfoEnabled()

isWarnEnabled

public static boolean isWarnEnabled()

isErrorEnabled

public static boolean isErrorEnabled()

debug

public static void debug(java.lang.String aMessage)

debug

public static void debug(java.lang.String aMessage,
                         java.lang.Throwable aThrowable)

info

public static void info(java.lang.String aMessage)

warn

public static void warn(java.lang.String aMessage)

error

public static void error(java.lang.String aMessage)

error

public static void error(java.lang.String aMessage,
                         java.lang.Throwable aThrowable)

error

public static void error(java.lang.Throwable aThrowable)

getService

public static LogService getService()
Returns the LogService which has been registered with the ServiceManager. If one does not yet exist, the StandardOutLogService (LogServiceImpl) is and returned. This must take place since the Deployer (which does not register services) requires a valid log.

Returns:
the LogService used for static logging.