org.figure8.join.util
Class LogUtil

java.lang.Object
  extended by org.figure8.join.util.LogUtil

public final class LogUtil
extends java.lang.Object

Logger factory.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux

Constructor Summary
LogUtil()
           
 
Method Summary
static org.apache.commons.logging.Log getLog(java.lang.Class clazz)
          Returns an instance of Jakarta Commons Log object.
static org.apache.commons.logging.Log getLog(java.lang.Class clazz, java.lang.String name)
          Returns an instance of Jakarta Commons Log object.
 
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

getLog

public static org.apache.commons.logging.Log getLog(java.lang.Class clazz)
Returns an instance of Jakarta Commons Log object. For now simply return the classname as a log.

Parameters:
clazz - Class (will use clazz.getName() to obtain the class name)
Returns:
A logger for the specified class

getLog

public static org.apache.commons.logging.Log getLog(java.lang.Class clazz,
                                                    java.lang.String name)
Returns an instance of Jakarta Commons Log object. For now simply return the classname + '.' + name as a log.

Parameters:
clazz - Class (will use clazz.getName() to obtain the class name)
name - Method name
Returns:
A logger for the specified class and method


Copyright © 2005-2008 Join. All Rights Reserved.