com.rhi.architecture.logging
Class LogUtil

java.lang.Object
  extended bycom.rhi.architecture.logging.LogUtil

public class LogUtil
extends java.lang.Object

Helper method to creating Logger instance.

Since:
1.0
Author:
Pete McKinstry

Constructor Summary
LogUtil()
           
 
Method Summary
static Logger getDefaultLogger()
          This method allows failures to be logged, even if the failure is in the logging package.
static Logger getLogger()
          Get the appropriate Logger instance for this Interface
static Logger getLogger(java.lang.Class type)
          This helper method requires that the LogFactory is registered w/ the ResourceContext.
static Logger getLogger(java.lang.String name)
          This helper method requires that the LogFactory is registered w/ the ResourceContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogUtil

public LogUtil()
Method Detail

getLogger

public static Logger getLogger()
                        throws ConfigurationException
Get the appropriate Logger instance for this Interface

Returns:
DataSource
Throws:
ConfigurationException
Since:
1.0

getLogger

public static Logger getLogger(java.lang.String name)
                        throws ConfigurationException
This helper method requires that the LogFactory is registered w/ the ResourceContext. It follows the new Logging model.

Parameters:
name - - the name of the logger.
Returns:
Logger
Throws:
ConfigurationException

getLogger

public static Logger getLogger(java.lang.Class type)
                        throws ConfigurationException
This helper method requires that the LogFactory is registered w/ the ResourceContext. It follows the new Logging model.

Parameters:
type - - the name of the logger.
Returns:
Logger
Throws:
ConfigurationException

getDefaultLogger

public static Logger getDefaultLogger()
This method allows failures to be logged, even if the failure is in the logging package.

Returns:
Logger


Copyright © 2002-2004 Robert Half International. All Rights Reserved.