org.sape.carbon.services.log.console
Class ConsoleLogFactory

java.lang.Object
  |
  +--org.apache.commons.logging.LogFactory
        |
        +--org.sape.carbon.services.log.console.ConsoleLogFactory

public class ConsoleLogFactory
extends org.apache.commons.logging.LogFactory

Implementation of the LogFactory to reference to the ConsoleLogger Copyright 2003 Sapient

Since:
carbon 2.0
Version:
$Revision: 1.4 $($Author: dvoet $ / $Date: 2003/05/05 21:21:26 $)
Author:
Anand Raman, March 2003

Field Summary
private  Hashtable attributes
          The configuration attributes for this LogFactory.
private  Hashtable instances
          Instance of ConsoleLogger
 
Fields inherited from class org.apache.commons.logging.LogFactory
factories, FACTORY_DEFAULT, FACTORY_PROPERTIES, FACTORY_PROPERTY, SERVICE_ID
 
Constructor Summary
ConsoleLogFactory()
          Constructor for ConsoleLogFactory.
 
Method Summary
 Object getAttribute(String name)
           
 String[] getAttributeNames()
           
 org.apache.commons.logging.Log getInstance(Class className)
           
 org.apache.commons.logging.Log getInstance(String className)
           
 void release()
           
 void removeAttribute(String name)
           
 void setAttribute(String name, Object value)
           
 
Methods inherited from class org.apache.commons.logging.LogFactory
getContextClassLoader, getFactory, getLog, getLog, newFactory, release, releaseAll
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributes

private Hashtable attributes
The configuration attributes for this LogFactory.


instances

private Hashtable instances
Instance of ConsoleLogger

Constructor Detail

ConsoleLogFactory

public ConsoleLogFactory()
Constructor for ConsoleLogFactory.

Method Detail

getAttribute

public Object getAttribute(String name)
Specified by:
getAttribute in class org.apache.commons.logging.LogFactory
See Also:
LogFactory.getAttribute(String)

getAttributeNames

public String[] getAttributeNames()
Specified by:
getAttributeNames in class org.apache.commons.logging.LogFactory
See Also:
LogFactory.getAttributeNames()

getInstance

public org.apache.commons.logging.Log getInstance(Class className)
                                           throws org.apache.commons.logging.LogConfigurationException
Specified by:
getInstance in class org.apache.commons.logging.LogFactory
org.apache.commons.logging.LogConfigurationException
See Also:
LogFactory.getInstance(Class)

getInstance

public org.apache.commons.logging.Log getInstance(String className)
                                           throws org.apache.commons.logging.LogConfigurationException
Specified by:
getInstance in class org.apache.commons.logging.LogFactory
org.apache.commons.logging.LogConfigurationException
See Also:
LogFactory.getInstance(String)

release

public void release()
Specified by:
release in class org.apache.commons.logging.LogFactory
See Also:
LogFactory.release()

removeAttribute

public void removeAttribute(String name)
Specified by:
removeAttribute in class org.apache.commons.logging.LogFactory
See Also:
LogFactory.removeAttribute(String)

setAttribute

public void setAttribute(String name,
                         Object value)
Specified by:
setAttribute in class org.apache.commons.logging.LogFactory
See Also:
LogFactory.setAttribute(String, Object)


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.