ca.uhn.log
Class HapiLogFactory

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

Deprecated. use slf4j LoggerFactory

public final class HapiLogFactory
extends 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.

Author:
Alexei Guevara

Method Summary
static HapiLog getHapiLog(Class<?> clazz)
          Deprecated. Convenience method to return a named HAPI logger, without the application having to care about factories.
static HapiLog getHapiLog(String name)
          Deprecated. 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(Class<?> clazz)
Deprecated. 
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(String name)
Deprecated. 
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-2012 University Health Network. All Rights Reserved.