ca.uhn.log
Class HapiLogFactory

java.lang.Object
  extended by ca.uhn.log.HapiLogFactory

public final class HapiLogFactory
extends java.lang.Object

Factory for creating HapiLog instances. It is factory that delegates the discovery process to the LogFactory class and wraps the discovered Log with a new instance of the HapiLog class.

Version:
$Revision: 1.1 $ updated on $Date: 2007/02/19 02:24:52 $ by $Author: jamesagnew $
Author:
Alexei Guevara

Method Summary
static HapiLog getHapiLog(java.lang.Class clazz)
          Convenience method to return a named HAPI logger, without the application having to care about factories.
static HapiLog getHapiLog(java.lang.String name)
          Convenience method to return a named HAPI logger, without the application having to care about factories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHapiLog

public static HapiLog getHapiLog(java.lang.Class clazz)
Convenience method to return a named HAPI logger, without the application having to care about factories.

Parameters:
clazz - Class for which a log name will be derived
Throws:
LogConfigurationException - if a suitable Log instance cannot be returned

getHapiLog

public static HapiLog getHapiLog(java.lang.String name)
Convenience method to return a named HAPI logger, without the application having to care about factories.

Parameters:
name - Logical name of the Log instance to be returned (the meaning of this name is only known to the underlying logging implementation that is being wrapped)
Throws:
LogConfigurationException - if a suitable Log instance cannot be returned


Copyright © 2001-2011 University Health Network. All Rights Reserved.